inertia is vulnerable to Cross-Site Scripting (XSS)
61
Medium Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
inertia is vulnerable to Cross-Site Scripting (XSS) in versions 3.0.0 - 3.0.0.
Upgrade the inertia 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
ISO 42001Compliant© All Intel data is openly available and commercially licensed.