Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. express-xss-sanitizer
  4. ›
  5. CVE-2022-21169

CVE-2022-21169: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

September 26, 2022 (updated February 14, 2024)

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.

References

  • github.com/AhmedAdelFahim/express-xss-sanitizer/commit/3bf8aaaf4dbb1c209dcb8d87a82711a54c1ab39a
  • github.com/AhmedAdelFahim/express-xss-sanitizer/issues/4
  • nvd.nist.gov/vuln/detail/CVE-2022-21169
  • runkit.com/embed/w306l6zfm7tu
  • security.snyk.io/vuln/SNYK-JS-EXPRESSXSSSANITIZER-3027443

Code Behaviors & Features

Detect and mitigate CVE-2022-21169 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.1.3

Fixed versions

  • 1.1.3

Solution

Upgrade to version 1.1.3 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/express-xss-sanitizer/CVE-2022-21169.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:26 +0000.