Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
svg svgo
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

SVGO(SVG Optimizer 的缩写)是一个用于优化 SVG 文件的 Node.js 库和命令行应用程序。从版本 1.0.0 到 2.8.4、3.3.5 和 4.1.0 之前的版本中,其可选启用的 插件(在版本 2 和 3 中称为 ,实现在 中)能够移除 SVG 和 XHTML 的 元素,但并未检查 SVG 中 元素内部的 HTML 可执行内容。攻击者可控的 SVG 输入中,事件处理属性(如 、 )、 文档,以及 、 、 、 和 属性中的可执行 URL 可能仍然保留。如果应用程序将该插件作为其唯一的安全防护

CVSS 6.1 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-84369

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
SVGO: removeScripts incompletely sanitizes executable HTML in SVG foreignObject elements
Source: CVE Program / CVE List V5
Vulnerability Description
SVGO, short for SVG Optimizer, is a Node.js library and command-line application for optimizing SVG files. From version 1.0.0 until versions 2.8.4, 3.3.5, and 4.1.0, the opt-in removeScripts plugin, named removeScriptElement in versions 2 and 3 and implemented in plugins/removeScripts.js, removes SVG and XHTML script elements but does not inspect executable HTML content inside SVG foreignObject elements. Event-handler attributes such as onload and onbeforetoggle, srcdoc documents, and executable URLs in the action, data, formaction, href, and src attributes can remain in attacker-controlled SVG input. When an application uses the plugin as its only protection and serves the optimized SVG in an active browser context, the payload can execute script in the viewer's origin, expose data, modify content, or perform actions as the victim. This issue is fixed in versions 2.8.4, 3.3.5, and 4.1.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
svg svgo >= 1.0.0, < 2.8.4 -

II. Public POCs for CVE-2026-84369

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-84369

登录查看更多情报信息。

Other References for CVE-2026-84369 (10)

IV. Related Vulnerabilities

V. Comments for CVE-2026-84369

No comments yet


Leave a comment