Intel

AIKIDO-2026-664086

inertia is vulnerable to Cross-Site Scripting (XSS)

GHSA-rjp3-h6x3-f2w3Published Oct 14, 2026
October 14, 2026

61

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the inertia library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

3.0.0 - 3.0.0

Fixed in 3.0.1

Background info

inertia is vulnerable to Cross-Site Scripting (XSS) in versions 3.0.0 - 3.0.0.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea