CodeQL Alert #46: Reflected server-side cross-site scripting
| Field |
Value |
| Rule ID |
py/reflective-xss |
| Severity |
MEDIUM |
| File path |
vulnerable_xss.py |
| Line range |
Lines 31–31 |
| CWE category |
CWE-079, CWE-116 |
| Classification |
demo-only |
| Priority tier |
batched |
| Alert link |
View CodeQL Alert |
Code Snippet
query = request.args.get('q', '')
template = f"<h1>Search results for: {query}</h1>"
return render_template_string(template)
@app.route('/profile')
def profile():
Classification: demo-only
This file is prefixed with vulnerable_ and is an intentionally insecure demo file for CodeQL demonstration purposes.
Generated by automated security triage on 2026-03-25.
CodeQL Alert #46: Reflected server-side cross-site scripting
py/reflective-xssvulnerable_xss.pydemo-onlybatchedCode Snippet
Classification:
demo-onlyThis file is prefixed with
vulnerable_and is an intentionally insecure demo file for CodeQL demonstration purposes.Generated by automated security triage on 2026-03-25.