CVE-2024-43800
JavaScript vulnerability analysis and mitigation

Overview

CVE-2024-43800 affects serve-static, a package that serves static files. The vulnerability was discovered and disclosed on September 10, 2024. The issue allows potential execution of untrusted code through passing sanitized yet untrusted user input to the redirect() function. The vulnerability affects serve-static versions prior to 1.16.0 and versions from 2.0.0 to 2.1.0 (excluding 2.1.0) (GitHub Advisory).

Technical details

The vulnerability has been assigned a CVSS v3.1 base score of 4.7 (Medium) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N. The issue is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation). The vulnerability exists in the redirect functionality where even sanitized user input passed to redirect() could potentially lead to code execution (NVD).

Impact

Successful exploitation of this vulnerability requires specific conditions: the attacker must control the input to response.redirect(), express must not redirect before the template appears, and the user must click on the link in the template before the browser completes redirection. The impact includes potential unauthorized code execution with low confidentiality and integrity impacts (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in serve-static version 1.16.0 and 2.1.0. Users are encouraged to upgrade to the patched versions. As a workaround, users should ensure any untrusted inputs are safe by validating them against an explicit allowlist (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management