CVE-2024-43799: Send Cross-Site Scripting Vulnerability
LOWCVE-2024-43799 is a LOW (CVSS 5.0) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Send libraries in the npm ecosystem. The issue involves send vulnerable to template injection that can lead to xss. Remediation is available by upgrading affected packages to version 0.19.0.
CVE-2024-43799 at a Glance
Security Impact
CVSS: 5.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L).
How to Fix CVE-2024-43799
To remediate this vulnerability, upgrade all affected Send dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install send@0.19.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls send
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-43799, inspect your project dependencies using npm:
npm ls send
Analyze the terminal output to locate any version of Send in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.19.0), your application is affected.
Note: The npm ls send command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Send, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-43799 Affected Send Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
send
|
npm |
< 0.19.0
|
0.19.0
|
References
Frequently Asked Questions
What is CVE-2024-43799?
Which Send versions are affected?
What version fixes CVE-2024-43799?
Is send affected?
What is the CVSS score of CVE-2024-43799?
What CWE is associated with CVE-2024-43799?
How can I check npm dependencies for CVE-2024-43799?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m6fv-jmcg-4jfg",
"modified" : "2025-11-03T22:48:03Z",
"published" : "2024-09-10T19:42:41Z",
"aliases" : [ "CVE-2024-43799" ],
"summary" : "send vulnerable to template injection that can lead to XSS",
"details" : "### Impact\n\npassing untrusted user input - even after sanitizing it - to `SendStream.redirect()` may execute untrusted code\n\n### Patches\n\nthis issue is patched in send 0.19.0\n\n### Workarounds\n\nusers are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist\n\n### Details\n\nsuccessful exploitation of this vector requires the following:\n\n1. The attacker MUST control the input to response.redirect()\n1. express MUST NOT redirect before the template appears\n1. the browser MUST NOT complete redirection before:\n1. the user MUST click on the link in the template",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "send"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.19.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pillarjs/send/security/advisories/GHSA-m6fv-jmcg-4jfg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-43799"
}, {
"type" : "WEB",
"url" : "https://github.com/pillarjs/send/commit/ae4f2989491b392ae2ef3b0015a019770ae65d35"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pillarjs/send"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2025/06/msg00022.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-10T19:42:41Z",
"nvd_published_at" : "2024-09-10T15:15:17Z"
}
}