Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @astrojs/node
  4. ›
  5. CVE-2026-41322

CVE-2026-41322: Astro: Cache Poisoning due to incorrect error handling when if-match header is malformed

April 23, 2026

Requesting a static JS/CSS resource from the _astro path with an incorrect or malformed if-match header returns a 500 error with a one-year cache lifetime instead of 412 in some cases. As a result, all subsequent requests to that file — regardless of the if-match header — will be served a 5xx error instead of the file until the cache expires.

Sending an incorrect or malformed if-match header should always return a 412 error without any cache headers, which is not the current behavior.

References

  • github.com/advisories/GHSA-c57f-mm3j-27q9
  • github.com/withastro/astro
  • github.com/withastro/astro/security/advisories/GHSA-c57f-mm3j-27q9
  • nvd.nist.gov/vuln/detail/CVE-2026-41322

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 10.0.5

Fixed versions

  • 10.0.5

Solution

Upgrade to version 10.0.5 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-525: Use of Web Browser Cache Containing Sensitive Information

Source file

npm/@astrojs/node/CVE-2026-41322.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Fri, 24 Apr 2026 12:19:33 +0000.