MEDIUM6.1
GHSA-grjp-4jmr-mjcw
express-xss-sanitizer vulnerable to Prototype Pollution via allowedTags attribute
Quick fix
GHSA-grjp-4jmr-mjcw — express-xss-sanitizer: upgrade to the fixed version with the command below.
npm install express-xss-sanitizer@1.1.3Details
The package express-xss-sanitizer before 1.1.3 is vulnerable to Prototype Pollution via the `allowedTags` attribute, allowing the attacker to bypass xss sanitization.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-21169[ADVISORY]
- https://github.com/AhmedAdelFahim/express-xss-sanitizer/issues/4[WEB]
- https://github.com/AhmedAdelFahim/express-xss-sanitizer/commit/3bf8aaaf4dbb1c209dcb8d87a82711a54c1ab39a[WEB]
- https://github.com/AhmedAdelFahim/express-xss-sanitizer[PACKAGE]
- https://runkit.com/embed/w306l6zfm7tu[WEB]
- https://security.snyk.io/vuln/SNYK-JS-EXPRESSXSSSANITIZER-3027443[WEB]