Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2023-22461: The `sanitize-svg` package, a small SVG sanitizer to prevent cross-site scripting attacks, uses a deny-list-pa

44
This month
HIGH 7.6UPGRADE

CVE-2023-22461 is a high-severity flaw (CVSS 7.6) affecting sanitize-svg. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

The `sanitize-svg` package, a small SVG sanitizer to prevent cross-site scripting attacks, uses a deny-list-pattern to sanitize SVGs to prevent XSS. In doing so, literal `<script>`-tags and on-event handlers were detected in versions prior to 0.4.0. As a result, downstream software that relies on `sanitize-svg` and expects resulting SVGs to be safe, may be vulnerable to cross-site scripting. This vulnerability was addressed in v0.4.0. There are n

Why this priority

  • High severity
  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score7.6 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededLow
User interactionRequired
EPSS exploit chance0.6% (top 52%)
CISA exploited listNo
WeaknessCWE-79, CWE-80
Published2023-01-04
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: sanitize-svg project

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

sanitize-svg project sanitize-svg UPGRADE
Affected: < 0.4.0
Fixed in: 0.4.0
Safe to downgrade to: no unaffected older release
1. Check installed version
npm ls sanitize-svg
2. UPGRADE to 0.4.0
npm install sanitize-svg@">=0.4.0"
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2023-22461?

sanitize-svg: upgrade to 0.4.0. Exact commands for each OS are on this page.

Is CVE-2023-22461 being exploited?

CVE-2023-22461 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2023-22461 affect?

CVE-2023-22461 affects sanitize-svg. Severity is high (CVSS 7.6). The `sanitize-svg` package, a small SVG sanitizer to prevent cross-site scripting attacks, uses a deny-list-pattern to sanitize SVGs to prevent XSS. In doing so, literal `<script>`-tags and on-event handlers were detected in versions prior

How urgent is CVE-2023-22461?

Priority 44/100. High severity; Public exploit reference

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.