Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

Medium · 6.5 Node.js & npm GHSA-mpr7-6m5w-76rw CVE-2026-114127 GHSA-98hj-9722-w3j8 CVE-2026-114128

Astro Fixes Two Cross-Site Scripting Issues in View Transitions and JSX/MDX Rendering

Astro has patched two separate cross-site scripting vulnerabilities: a CSS injection flaw in server-side View Transitions and an unescaped script/style tag issue in JSX/MDX rendering. Both are fixed in current releases; sites passing untrusted data into affected APIs should update.

By PatchBriefing · ·

Produced automatically from official sources with the help of AI. How we work →

AI summary

Astro, a web framework for building content-driven websites, has disclosed and fixed two distinct cross-site scripting (XSS)-related vulnerabilities affecting its server-side rendering pipeline. One concerns the View Transitions API's CSS generator, which can allow CSS injection when attacker-controlled data reaches certain animation properties. The other affects how JSX and MDX rendering handles content inside script and style tags, which can allow arbitrary HTML and JavaScript injection in some configurations. Both issues have been addressed by the Astro project in subsequent releases.

What Happened

Two vulnerabilities were identified in Astro, both related to improper neutralization of input during web page generation (CWE-79). The first, tracked as CVE-2026-114127 (GHSA-mpr7-6m5w-76rw), affects Astro's server-side View Transition CSS generator, which failed to properly constrain string animation properties within their generated CSS declarations. The second, CVE-2026-114128 (GHSA-98hj-9722-w3j8), affects Astro's JSX and MDX rendering pipeline, which treated string children of script and style elements as trusted HTML without distinguishing compiler-generated content from dynamic expression values.

Technical Cause

For CVE-2026-114127, an application that passes attacker-controlled data into View Transition properties such as duration, delay, easing, direction, fillMode, or animation names can allow CSS delimiters to terminate the generated declaration and introduce attacker-selected CSS rules into the server-rendered page. The generated stylesheet still escapes literal less-than characters, so the injected content cannot terminate the style element or directly inject HTML or JavaScript. For CVE-2026-114128, Astro's astro:jsx renderer (including MDX components) rendered string children of script and style elements without escaping dynamic expression values, unlike other JSX expression contexts which escape dynamic strings automatically. An attacker-controlled value containing a closing script or style tag can terminate the element and inject arbitrary HTML and JavaScript, potentially resulting in reflected or stored XSS under the application's origin.

Why It Matters

While the CSS injection issue (CVE-2026-114127) is limited to altering visual presentation—concealing or repositioning content, adding generated text, or misrepresenting the interface, and potentially exposing data already present in selectable DOM attributes through conditional resource loads—it cannot directly execute script or break out of the style element. The JSX/MDX rendering issue (CVE-2026-114128) is more serious, as it can allow arbitrary HTML and JavaScript injection, which may result in reflected or stored cross-site scripting under the application's own origin.

Who Is Affected

Applications built on Astro that pass attacker-controlled (untrusted) data into View Transition animation properties are affected by CVE-2026-114127. Applications that render attacker-controlled data as dynamic children of script or style elements via Astro's JSX or MDX rendering pipeline are affected by CVE-2026-114128.

Affected Versions

CVE-2026-114127 affects Astro versions from 7.1.0 up to and including the last affected version before the fix; it is resolved in version 7.3.3. CVE-2026-114128 affects Astro versions prior to 7.3.2, starting from version 0 in the affected range; it is resolved in version 7.3.2.

Fixes and Mitigation

Astro has released fixed versions for both issues. The CSS injection issue (CVE-2026-114127) is fixed in version 7.3.3. The JSX/MDX script/style rendering issue (CVE-2026-114128) is fixed in version 7.3.2.

Recommended Action

Site owners and developers using Astro should update to version 7.3.3 or later, which includes fixes for both vulnerabilities. Developers should also review any code that passes user-controlled or otherwise untrusted data into View Transition animation properties, or into script or style element children in JSX/MDX templates, and treat such inputs as untrusted even after updating.

PatchBriefing score

6.5 / 10 · Medium

Official CVSS: 6.5

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

EPSS 0.0043 (29 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

astro >= 7.1.0, <= 7.3.2
vulnerable
astro ≥ 7.1.0 < 7.3.3
vulnerable
≥ 7.3.3
patched
astro < 7.3.2
vulnerable
astro ≥ 0 < 7.3.2
vulnerable
≥ 7.3.2
patched

Reported fixes

Astro has released fixed versions for both issues. The CSS injection issue (CVE-2026-114127) is fixed in version 7.3.3. The JSX/MDX script/style rendering issue (CVE-2026-114128) is fixed in version 7.3.2.

How this was built

6 source records were collected, matched and used to prepare the report above.

  • NVD (NIST) database
  • NVD (NIST) database
  • GitHub Advisory Database database
  • GitHub Advisory Database database
  • OSV.dev database
  • OSV.dev database
Unified report
Astro Fixes Two Cross-Site Scripting Issues in View Transitions and JSX/MDX Rendering
1 article · 6 sources cited
Revision history
  1. Published
  2. Generated
  3. Published
  4. Generated
  5. Published
  6. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email