inertia is vulnerable to Cross-Site Scripting (XSS)
61
CVE Score
Medium
Cross-Site Scripting (XSS)
The Phoenix adapter embeds the Inertia page object as JSON inside a <script data-page="app" type="application/json"> tag in the initial HTML response without escaping <. A prop containing </script> ends the script element early in client rendered output, while <!--<script> disrupts HTML parsing in SSR output, so user controlled props such as names or comments can inject markup and scripts during the initial page load. Subsequent Inertia visits are not affected because their JSON responses are not parsed as HTML. The fix encodes every < in the page data as \u003c in both code paths.
Upgrade the inertia library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
3.0.0 - 3.0.0
Fixed in 3.0.1inertia is vulnerable to Cross-Site Scripting (XSS) in versions 3.0.0 - 3.0.0.
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.