Altair: DOM-based XSS via attacker-controlled script URLs in the iframe sandbox

State
Published
Severity
6.1 Medium
Published
Nov 5, 2026
Updated
Nov 10, 2026
Reserved
Oct 14, 2026

Read the record on cve.org

Description

Altair is a GraphQL client for all platforms. From 7.2.4 until 8.5.8, packages/altair-iframe-sandbox/src/main.ts reads plugin_sandbox_opts from the iframe-sandbox query string and passes attacker-controlled scriptUrls to injectScript() in packages/altair-core/src/utils/inject.ts, which creates script elements in the page. The intended parent iframe flow places the page in an iframe with sandbox allow-scripts and without allow-same-origin, but direct navigation to a crafted iframe-sandbox URL omits that isolation and executes the supplied script in the origin serving Altair. Exploitation requires a victim to open the crafted URL, and the resulting script can access script-readable storage and make same-origin requests according to the deployment's authentication and cookie controls. This issue is fixed in version 8.5.8.

ProductVersions
altair altair-graphql>= 7.2.4, < 8.5.8 Affected
altair-express-middleware altair-graphql>= 7.2.4, < 8.5.8 Affected
altair-fastify-plugin altair-graphql>= 7.2.4, < 8.5.8 Affected
altair-koa-middleware altair-graphql>= 7.2.4, < 8.5.8 Affected
altair-static altair-graphql>= 7.2.4, < 8.5.8 Affected

Weaknesses

  • CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-829 Inclusion of Functionality from Untrusted Control Sphere

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.