Intel

AIKIDO-2026-841274

@svgdotjs/svg.js is vulnerable to Prototype Pollution

Prototype PollutionCVE-2026-15697 Published 6 days ago

56

Medium Risk

This Affects:

JS@svgdotjs/svg.js
3.0.0 - 3.2.6
Fixed in 3.2.7
Are you affected? Scan for Free

TL;DR

The @svgdotjs/svg.js event system registers listeners by splitting an event string into an event name and namespace and storing them in a plain object keyed by those values. Because the registry uses ordinary objects, an event name or namespace such as __proto__, constructor, or prototype writes through the prototype accessor and mutates Object.prototype. An application that forwards untrusted strings into on() can trigger silent global prototype pollution, leading to logic corruption or denial of service. The fix builds the event registry with prototype-less objects so these names are treated as ordinary data.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application passes untrusted input as event names or namespaces to on().

Background info

@svgdotjs/svg.js is vulnerable to Prototype Pollution in versions 3.0.0 - 3.2.6.

How to fix this

Upgrade the @svgdotjs/svg.js library to the patch version.