@inertiajs/core is vulnerable to Cross-Site Scripting (XSS)
59
CVE Score
Medium
Cross-Site Scripting (XSS)
When Inertia receives a non-Inertia response such as a server error page, it renders the returned HTML inside a modal or dialog iframe by writing it into a same-origin, unsandboxed iframe with document.write. Scripts contained in that response execute in the application origin and can reach window.parent, giving them access to the host page. An attacker who can cause the server to reflect attacker-controlled markup in such an error response can run script with access to the parent application context. The fix renders the content through the iframe srcdoc attribute together with a sandbox attribute so embedded scripts run in an isolated context that cannot access window.parent.
Upgrade the @inertiajs/core library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your server can return attacker-influenced HTML in a non-Inertia error response that Inertia renders in its error modal.
1.0.0 - 2.3.21
Fixed in 2.3.223.0.0 - 3.0.3
Fixed in 3.1.0@inertiajs/core is vulnerable to Cross-Site Scripting (XSS) in versions 1.0.0 - 2.3.21 and 3.0.0 - 3.0.3.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.