# express-xss-sanitizer (npm) vulnerabilities

3 known vulnerabilities (2 high, 1 medium), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: 2.0.2 (Mar 25, 2026): no advisory affects it
- Newest unaffected release: 2.0.2 (Mar 25, 2026), the latest release
- Weekly downloads: 26.3K
- Dependents: 3
- Releases: 18 since 1.0.0 (Nov 20, 2020)
- Registry: https://www.npmjs.com/package/express-xss-sanitizer
- Releases read: Nov 8, 2026

## Version timeline

Affected versions per advisory, in version order:

- CVE-2026-33979: 1.0.0 to 2.0.1 (2.0.2 is outside it)
- CVE-2025-59364: 1.0.0 to 2.0.0 (2.0.1 is outside it)
- CVE-2022-21169: 1.0.0 to 1.1.2 (1.1.3 is outside it)

## Advisories (3)

### [CVE-2026-33979](https://cve.now/CVE-2026-33979): Express XSS Sanitizer: allowedTags/allowedAttributes bypass leads to permissive sanitization (XSS risk)

- Severity: High 8.2
- Published: Mar 27, 2026
- Affected: fixed in 2.0.2.
- Fixed in 2.0.2 (released Mar 25, 2026, 2 days before disclosure).
- The latest release, 2.0.2, is not affected.
- 50% of express-xss-sanitizer downloads last week were affected versions (17.7K).

### [CVE-2025-59364](https://cve.now/CVE-2025-59364): The express-xss-sanitizer (aka Express XSS Sanitizer) package through 2.0.0 for Node.js has an unbounded recursion depth in sanitize in…

- Severity: Medium 5.3
- Published: Sep 14, 2025
- Affected: fixed in 2.0.1.
- Fixed in 2.0.1 (released Sep 26, 2025, 12 days after disclosure).
- The latest release, 2.0.2, is not affected.
- 28% of express-xss-sanitizer downloads last week were affected versions (9.7K).

### [CVE-2022-21169](https://cve.now/CVE-2022-21169): Prototype Pollution

- Severity: High 7.3
- Published: Sep 26, 2022
- Affected: fixed in 1.1.3.
- Fixed in 1.1.3 (released Sep 20, 2022, 6 days before disclosure).
- The latest release, 2.0.2, is not affected.
- 0.9% of express-xss-sanitizer downloads last week were affected versions (324).

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/npm/express-xss-sanitizer
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
