Skip to content

astro-5.18.1.tgz: 2 vulnerabilities (highest severity is: 6.1) #194

@mend-for-github-com

Description

@mend-for-github-com
Vulnerable Library - astro-5.18.1.tgz

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Library home page: https://registry.npmjs.org/astro/-/astro-5.18.1.tgz

Path to dependency file: /docs/starlight-docs/package.json

Path to vulnerable library: /docs/starlight-docs/package.json,/docs/package.json

Found in HEAD commit: ec994c1a9bf5ae33c1721ef3568d20d917573751

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (astro version) Remediation Possible**
CVE-2026-41305 Medium 6.1 postcss-8.5.6.tgz Transitive N/A*
CVE-2026-41067 Medium 6.1 astro-5.18.1.tgz Direct 6.1.6

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2026-41305

Vulnerable Library - postcss-8.5.6.tgz

Tool for transforming styles with JS plugins

Library home page: https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz

Path to dependency file: /docs/package.json

Path to vulnerable library: /docs/package.json,/docs/starlight-docs/package.json

Dependency Hierarchy:

  • astro-5.18.1.tgz (Root Library)
    • vite-6.4.2.tgz
      • postcss-8.5.6.tgz (Vulnerable Library)

Found in HEAD commit: ec994c1a9bf5ae33c1721ef3568d20d917573751

Found in base branch: main

Vulnerability Details

PostCSS takes a CSS file and provides an API to analyze and modify its rules by transforming the rules into an Abstract Syntax Tree. Versions prior to 8.5.10 do not escape "</style>" sequences when stringifying CSS ASTs. When user-submitted CSS is parsed and re-stringified for embedding in HTML "<style>" tags, "</style>" in CSS values breaks out of the style context, enabling XSS. Version 8.5.10 fixes the issue.

Publish Date: 2026-04-24

URL: CVE-2026-41305

CVSS 3 Score Details (6.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-qx2v-qp2m-jg93

Release Date: 2026-04-24

Fix Resolution: postcss - 8.5.10,https://github.com/postcss/postcss.git - 8.5.10

CVE-2026-41067

Vulnerable Library - astro-5.18.1.tgz

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

Library home page: https://registry.npmjs.org/astro/-/astro-5.18.1.tgz

Path to dependency file: /docs/starlight-docs/package.json

Path to vulnerable library: /docs/starlight-docs/package.json,/docs/package.json

Dependency Hierarchy:

  • astro-5.18.1.tgz (Vulnerable Library)

Found in HEAD commit: ec994c1a9bf5ae33c1721ef3568d20d917573751

Found in base branch: main

Vulnerability Details

Astro is a web framework. Prior to 6.1.6, the defineScriptVars function in Astro's server-side rendering pipeline uses a case-sensitive regex /</script>/g to sanitize values injected into inline <script> tags via the define:vars directive. HTML parsers close <script> elements case-insensitively and also accept whitespace or / before the closing >, allowing an attacker to bypass the sanitization with payloads like </Script>, </script >, or </script/> and inject arbitrary HTML/JavaScript. This vulnerability is fixed in 6.1.6.
Mend Note: The description of this vulnerability differs from MITRE.

Publish Date: 2026-04-24

URL: CVE-2026-41067

CVSS 3 Score Details (6.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-j687-52p2-xcff

Release Date: 2026-04-24

Fix Resolution: 6.1.6

⛑️ Automatic Remediation will be attempted for this issue.


⛑️Automatic Remediation will be attempted for this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions