@svgdotjs/svg.js is vulnerable to Prototype Pollution
56
Medium Risk
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.
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().
@svgdotjs/svg.js is vulnerable to Prototype Pollution in versions 3.0.0 - 3.2.6.
Upgrade the @svgdotjs/svg.js library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant