Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. svgo
  4. ›
  5. CVE-2026-84370

CVE-2026-84370: SVGO: removeScripts allows executable links through namespace and control-character bypasses

September 8, 2026

SVGO’s opt-in removeScripts plugin failed to remove some executable links. Namespace-prefixed SVG anchors and URL schemes containing ASCII tabs or newlines could bypass its checks. Applications that used this plugin as their only protection for untrusted SVG input could expose users to cross-site scripting (XSS).

SVGO is an optimizer rather than a comprehensive sanitization library, but removeScripts is maintained for consumers that already rely on it to remove common script execution paths.

References

  • github.com/advisories/GHSA-w27v-7q3p-w38r
  • github.com/svg/svgo/commit/0557385564a5c6c11d76cd934a6cff94451e532c
  • github.com/svg/svgo/commit/3db3ef33e409a0bc0fdaf255e46c908b00e93bc2
  • github.com/svg/svgo/commit/994a9f00d79ddec68ce19a1ce9eb8ca08d747e4f
  • github.com/svg/svgo/pull/2268
  • github.com/svg/svgo/pull/2269
  • github.com/svg/svgo/pull/2272
  • github.com/svg/svgo/releases/tag/v2.8.4
  • github.com/svg/svgo/releases/tag/v3.3.5
  • github.com/svg/svgo/releases/tag/v4.1.0
  • github.com/svg/svgo/security/advisories/GHSA-w27v-7q3p-w38r
  • nvd.nist.gov/vuln/detail/CVE-2026-84370

Code Behaviors & Features

Detect and mitigate CVE-2026-84370 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 starting from 1.0.0 before 2.8.4, all versions starting from 3.0.0 before 3.3.5, all versions starting from 4.0.0 before 4.1.0

Fixed versions

  • 2.8.4
  • 3.3.5
  • 4.1.0

Solution

Upgrade to versions 2.8.4, 3.3.5, 4.1.0 or above.

Impact 8.2 HIGH

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

Learn more about CVSS

Weakness

  • CWE-184: Incomplete List of Disallowed Inputs
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/svgo/CVE-2026-84370.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 22 Sep 2026 12:19:54 +0000.