Skip to content

astro-5.18.2.tgz: 5 vulnerabilities (highest severity is: 7.5) #394

Description

@mend-for-github-com
Vulnerable Library - astro-5.18.2.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.2.tgz

Path to dependency file: /tutorials/video-node-client-observability/package.json

Path to vulnerable library: /tutorials/video-node-client-observability/package.json,/sources/voice-javascript-build_call_menu/package.json,/sources/video-node-client-observability/package.json,/tutorials/video-javascript-client-observability/package.json,/tutorials/voice-javascript-build_call_menu/package.json,/sources/video-javascript-client-observability/package.json

Found in HEAD commit: f400f39c07df86338418f7902a27a7c22c1442b4

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (astro version) Remediation Possible**
CVE-2026-54299 High 7.5 astro-5.18.2.tgz Direct https://github.com/withastro/astro.git - astro@6.4.6
CVE-2026-50146 High 7.1 astro-5.18.2.tgz Direct https://github.com/withastro/astro.git - 6.3.3
CVE-2026-59729 Medium 6.1 astro-5.18.2.tgz Direct 7.0.5
CVE-2026-59727 Medium 6.1 astro-5.18.2.tgz Direct https://github.com/withastro/astro.git - astro@7.0.4
CVE-2026-54298 Medium 4.2 astro-5.18.2.tgz Direct https://github.com/withastro/astro.git - 6.4.6

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

Details

CVE-2026-54299

Vulnerable Library - astro-5.18.2.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.2.tgz

Path to dependency file: /tutorials/video-node-client-observability/package.json

Path to vulnerable library: /tutorials/video-node-client-observability/package.json,/sources/voice-javascript-build_call_menu/package.json,/sources/video-node-client-observability/package.json,/tutorials/video-javascript-client-observability/package.json,/tutorials/voice-javascript-build_call_menu/package.json,/sources/video-javascript-client-observability/package.json

Dependency Hierarchy:

  • astro-5.18.2.tgz (Vulnerable Library)

Found in HEAD commit: f400f39c07df86338418f7902a27a7c22c1442b4

Found in base branch: main

Vulnerability Details

Astro is a web framework. Prior to 6.4.6, Astro SSR apps with prerendered error pages (/404 or /500 using export const prerender = true) fetch those pages over HTTP at runtime when an error occurs. The URL for this fetch is derived from request.url, which in turn gets its origin from the incoming Host header. When the Host header is not validated against allowedDomains, an attacker can point the fetch at an arbitrary host and read the response. This vulnerability is fixed in 6.4.6.

Publish Date: 2026-06-22

URL: CVE-2026-54299

CVSS 3 Score Details (7.5)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-06-16

Fix Resolution: https://github.com/withastro/astro.git - astro@6.4.6

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-50146

Vulnerable Library - astro-5.18.2.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.2.tgz

Path to dependency file: /tutorials/video-node-client-observability/package.json

Path to vulnerable library: /tutorials/video-node-client-observability/package.json,/sources/voice-javascript-build_call_menu/package.json,/sources/video-node-client-observability/package.json,/tutorials/video-javascript-client-observability/package.json,/tutorials/voice-javascript-build_call_menu/package.json,/sources/video-javascript-client-observability/package.json

Dependency Hierarchy:

  • astro-5.18.2.tgz (Vulnerable Library)

Found in HEAD commit: f400f39c07df86338418f7902a27a7c22c1442b4

Found in base branch: main

Vulnerability Details

Astro is a web framework. Prior to 6.3.3, when a component uses a client:* directive, Astro inserts named slot content into a data-astro-template attribute without HTML escaping the slot name allowing an attacker to break out of the attribute context and inject arbitrary HTML, resulting in reflected XSS during SSR. This vulnerability is fixed in 6.3.3.

Publish Date: 2026-06-22

URL: CVE-2026-50146

CVSS 3 Score Details (7.1)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2026-06-16

Fix Resolution: https://github.com/withastro/astro.git - 6.3.3

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-59729

Vulnerable Library - astro-5.18.2.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.2.tgz

Path to dependency file: /tutorials/video-node-client-observability/package.json

Path to vulnerable library: /tutorials/video-node-client-observability/package.json,/sources/voice-javascript-build_call_menu/package.json,/sources/video-node-client-observability/package.json,/tutorials/video-javascript-client-observability/package.json,/tutorials/voice-javascript-build_call_menu/package.json,/sources/video-javascript-client-observability/package.json

Dependency Hierarchy:

  • astro-5.18.2.tgz (Vulnerable Library)

Found in HEAD commit: f400f39c07df86338418f7902a27a7c22c1442b4

Found in base branch: main

Vulnerability Details

Astro is a web framework for content-driven websites. Versions prior to 7.0.6 are vulnerable to XSS through unescaped spread attribute names in renderHTMLElement. The fix for CVE-2026-54298 (GHSA-jrpj-wcv7-9fh9) added an INVALID_ATTR_NAME_CHAR guard to addAttribute() so that spread-prop attribute names containing "' >/= or whitespace are dropped. A second attribute-rendering path, renderHTMLElement() in packages/astro/src/runtime/server/render/dom.ts, has its own inline attribute loop that does not go through addAttribute() and was not updated. It interpolates the attribute name unescaped and only escapes the value, so untrusted prop keys spread onto a native-HTMLElement-subclass component can still break out of the attribute context. This issue has been fixed in version 7.0.6.

Publish Date: 2026-07-27

URL: CVE-2026-59729

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

Release Date: 2026-07-21

Fix Resolution: 7.0.5

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-59727

Vulnerable Library - astro-5.18.2.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.2.tgz

Path to dependency file: /tutorials/video-node-client-observability/package.json

Path to vulnerable library: /tutorials/video-node-client-observability/package.json,/sources/voice-javascript-build_call_menu/package.json,/sources/video-node-client-observability/package.json,/tutorials/video-javascript-client-observability/package.json,/tutorials/voice-javascript-build_call_menu/package.json,/sources/video-javascript-client-observability/package.json

Dependency Hierarchy:

  • astro-5.18.2.tgz (Vulnerable Library)

Found in HEAD commit: f400f39c07df86338418f7902a27a7c22c1442b4

Found in base branch: main

Vulnerability Details

Astro is a web framework for content-driven websites. In versions 3.10.0 through 7.0.3, when a transition:persist, transition:scope, or transition:persist-props directive is applied to a client-hydrated (client:*) component, Astro copied the directive value onto the rendered element without HTML-escaping it. If a developer reflects attacker-controlled input into one of these directives, an attacker can break out of the attribute and inject arbitrary HTML/JavaScript into the server-rendered output, resulting in reflected cross-site scripting (XSS). Exploitation requires the application developer to have written a non-idiomatic pattern — passing untrusted, request-derived input directly into a transition directive. Astro applications that do not route untrusted input into these directives are unaffected. This issue has been fixed in version 7.0.4.

Publish Date: 2026-07-27

URL: CVE-2026-59727

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

Release Date: 2026-07-21

Fix Resolution: https://github.com/withastro/astro.git - astro@7.0.4

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2026-54298

Vulnerable Library - astro-5.18.2.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.2.tgz

Path to dependency file: /tutorials/video-node-client-observability/package.json

Path to vulnerable library: /tutorials/video-node-client-observability/package.json,/sources/voice-javascript-build_call_menu/package.json,/sources/video-node-client-observability/package.json,/tutorials/video-javascript-client-observability/package.json,/tutorials/voice-javascript-build_call_menu/package.json,/sources/video-javascript-client-observability/package.json

Dependency Hierarchy:

  • astro-5.18.2.tgz (Vulnerable Library)

Found in HEAD commit: f400f39c07df86338418f7902a27a7c22c1442b4

Found in base branch: main

Vulnerability Details

Astro is a web framework. Prior to 6.4.6, the spreadAttributes function in Astro's server-side rendering pipeline iterates over object keys and passes them directly to addAttribute, which interpolates the key into the HTML output without escaping. When a developer uses the spread syntax {...props} on an HTML element and the object keys come from an untrusted source (API, CMS, URL parameters), an attacker can inject arbitrary HTML attributes including event handlers like onmousemove, onclick, or break out of the attribute context entirely to inject new elements. This vulnerability is fixed in 6.4.6.

Publish Date: 2026-06-22

URL: CVE-2026-54298

CVSS 3 Score Details (4.2)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Unchanged
  • 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-jrpj-wcv7-9fh9

Release Date: 2026-06-16

Fix Resolution: https://github.com/withastro/astro.git - 6.4.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