Intel

AIKIDO-2026-362235

svelte-meta-tags is vulnerable to Cross-Site Scripting (XSS)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 22, 2026
July 22, 2026

59

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

The JsonLd component renders structured data by serializing the schema with JSON.stringify and injecting the result into an inline <script type="application/ld+json"> block using {@html}. The < character in the serialized output is not escaped, so a schema value that contains a </script> sequence closes the JSON-LD script element and lets arbitrary markup be injected into the rendered page. When schema values include untrusted or user-controlled data, this leads to cross-site scripting in the server-rendered HTML. The fix escapes < as the JSON escape sequence \u003c before the serialized JSON-LD is written into the script tag.

How do I fix this?

Upgrade the svelte-meta-tags library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you render JSON-LD schema values that contain untrusted or user-controlled data.

Versions

1.1.0 - 5.0.1

Fixed in 5.0.2

Background info

svelte-meta-tags is vulnerable to Cross-Site Scripting (XSS) in versions 1.1.0 - 5.0.1.

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