Intel

AIKIDO-2025-10497

@babylonjs/gui is vulnerable to Cross-site Scripting (XSS)

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

40

CVE Score

Medium

Cross-site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to SVG parsing XSS, where image loader insecurely processes SVG content, failing to sanitize non-SVG elements like <link> or <img> during parsing. It allows attackers to craft malicious SVG images containing embedded scripts or external resource tags that execute when loaded via Babylon.js GUI.Image component. Exploitation occurs when a vulnerable application (without proper Content Security Policies) renders user-supplied SVG files, enabling cross-site scripting (XSS) attacks that hijack user sessions, steal data, or perform malicious actions within the application context.

How do I fix this?

Upgrade the @babylonjs/gui library to the patch version.

Who does this affect?

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

Versions

4.1.0 - 8.17.1

Fixed in 8.17.2

Background info

@babylonjs/gui is vulnerable to Cross-site Scripting (XSS) in versions 4.1.0 - 8.17.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