Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive in javascript.express.security.audit.xss.direct-response-write.direct-response-write #3381

Closed
1 of 3 tasks
nbrahms opened this issue May 8, 2024 · 0 comments · Fixed by #3382
Closed
1 of 3 tasks
Labels
bug Something isn't working

Comments

@nbrahms
Copy link
Contributor

nbrahms commented May 8, 2024

Describe the bug
This alert should not trigger on non-rendered response types, like JSON.

To Reproduce

Run Semgrep on an express endpoint with:

  router.use(express.json());
  ...
  router.use(..., (_, res) => {
    ...
    res.send({ something: viaUserInput })
  }

Expected behavior
No Semgrep finding

Priority
How important is this to you?

  • P0: blocking me from making progress
  • P1: this will block me in the near future
  • P2: annoying but not blocking me
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

1 participant