We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const { xss } = require('express-xss-sanitizer'); app.use(xss());
This code removing the html tags and scripts from the request but still the njsscan showing vulnerabilities for the below code.
router.post("/employee/data", async (req, res) => { const empData= await prepareEmployeeData(req.body); res.setHeader('Content-Type', 'application/pdf'); res.setHeader('Content-Disposition', 'attachment; filename=result.pdf'); res.send(empData); });
The text was updated successfully, but these errors were encountered:
This is possibly a false positive, the rule thinks that req.body is reaching the response via res.send(empData);
req.body
res.send(empData);
Sorry, something went wrong.
@ajinabraham Is there any way we can fix it.?
No branches or pull requests
const { xss } = require('express-xss-sanitizer');
app.use(xss());
This code removing the html tags and scripts from the request but still the njsscan showing vulnerabilities for the below code.
The text was updated successfully, but these errors were encountered: