payload is vulnerable to Cross-Site Scripting
45
Medium Risk
Affected versions of this package are vulnerable to cross-site scripting (XSS) via malicious SVG uploads because uploaded SVG files could be served without restrictive content security headers, allowing embedded scripts to execute in contexts such as the admin panel. The issue is mitigated by adding Content-Security-Policy (CSP) headers to all SVG uploads in core and storage adapters, which prevents execution of inline scripts in SVG content by default and reduces the risk of “SVG smuggling”-style attacks. This defensive layer complements existing SVG validation and gives developers additional assurance that untrusted SVGs won’t execute script in browsers.
You are affected if you are using a version that falls within the vulnerable range.
payload is vulnerable to Cross-Site Scripting in versions 0.0.1 - 3.76.0.
Upgrade the payload 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.

SOC 2Compliant
ISO 27001Compliant