Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. astro
  4. ›
  5. CVE-2026-114127

CVE-2026-114127: Astro: Arbitrary CSS injection in Astro View Transitions

October 22, 2026

Astro’s server-side View Transition CSS generator did not keep string animation properties within their generated CSS declarations. In an application that passes attacker-controlled data into an animation property such as duration, a value containing CSS delimiters could terminate the declaration and rule, then add attacker-selected CSS to the server-rendered page.

The injected content remains inside the generated <style> element. It cannot terminate that element or inject HTML or JavaScript because Astro escapes < before emitting the stylesheet.

References

  • github.com/advisories/GHSA-mpr7-6m5w-76rw
  • github.com/withastro/astro/commit/0b4dc3a211910b589d3805ab4dfedf11b0e712bb
  • github.com/withastro/astro/pull/17970
  • github.com/withastro/astro/releases/tag/astro@7.3.3
  • github.com/withastro/astro/security/advisories/GHSA-mpr7-6m5w-76rw
  • nvd.nist.gov/vuln/detail/CVE-2026-114127

Code Behaviors & Features

Detect and mitigate CVE-2026-114127 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 7.1.0 before 7.3.3

Fixed versions

  • 7.3.3

Solution

Upgrade to version 7.3.3 or above.

Impact 4.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/astro/CVE-2026-114127.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:27 +0000.