SQL requests are not correctly escaped when displayed in dev mode. A XSS could be injected everywhere a data input is used in a SQL request.
Impact
An attacker could use this vulnerability to force a victim to execute uncontrolled code.
CVSS2 score: 2.6 (AV:N/AC:H/Au:N/C:N/I:P/A:N)
Exploitation
The dev mode should be activated to exploit this vulnerability. You could, for example, search <script>alert(1)</script>.
References
https://cwe.mitre.org/data/definitions/79.html
https://www.owasp.org/index.php/Cross-site_Scripting_%28XSS%29