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

CVE-2026-84369: SVGO: removeScripts incompletely sanitizes executable HTML in SVG foreignObject elements

September 8, 2026

SVGO’s opt-in removeScripts plugin did not inspect executable HTML content inside SVG <foreignObject> elements. Applications that used this plugin as their only protection for untrusted SVG input could produce SVGs containing active HTML and 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-4vpr-x523-8j87
  • github.com/svg/svgo/commit/0557385564a5c6c11d76cd934a6cff94451e532c
  • github.com/svg/svgo/commit/994a9f00d79ddec68ce19a1ce9eb8ca08d747e4f
  • github.com/svg/svgo/commit/fd51e474a300417d9361d9302d596b1763146327
  • github.com/svg/svgo/pull/2264
  • 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-4vpr-x523-8j87
  • nvd.nist.gov/vuln/detail/CVE-2026-84369

Code Behaviors & Features

Detect and mitigate CVE-2026-84369 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

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 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/svgo/CVE-2026-84369.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:41 +0000.