Skip to content

Conversation

@apsscolari
Copy link
Contributor

No description provided.

http.createServer(function (req, res) {
const query = url.parse(req.url, true).query;
// Vulnerable to reflected XSS
res.end('<h1>Hello, ' + query.name + '!</h1>');

Check failure

Code scanning / CodeQL

Reflected cross-site scripting High

Cross-site scripting vulnerability due to a
user-provided value
.
@apsscolari apsscolari merged commit 753d3cc into main Jun 5, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants