Vulnerabilities in pkg:npm/send

PACKAGE
Advisory Identifier: GHSA-m6fv-jmcg-4jfg
Advisory Summary

CVE-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.

4 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/send

4 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/send. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-m6fv-jmcg-4jfg CVE-2024-43799 LOW send vulnerable to template injection that can lead to XSS
GHSA-xwg4-93c6-3h42 CVE-2014-6394 LOW Directory Traversal in send
GHSA-jgqf-hwc5-hh37 CVE-2015-8859 MODERATE Root Path Disclosure in send
GHSA-pgv6-jrvv-75jp - MODERATE Moderate severity vulnerability that affects send

CVE-2024-43799 at a Glance

CVE Identifier CVE-2024-43799
GHSA Identifier GHSA-m6fv-jmcg-4jfg
Severity LOW
CVSS v3.1 Base Score 5.0
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Send
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

send fixed: 0.19.0
npm install send@0.19.0
Verify Direct and Transitive Dependencies

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

### Impact passing untrusted user input - even after sanitizing it - to `SendStream.redirect()` may execute untrusted code ### Patches this issue is patched in send 0.19.0 ### Workarounds users 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 ### Details successful exploitation of this vector requires the following: 1. The attacker MUST control the input to response.redirect() 1. express MUST NOT redirect before the template appears 1. the browser MUST NOT complete redirection before: 1. the user MUST click on the link in the template

CVE-2024-43799 Affected Send Versions

1 component(s)
Fixed Versions:
0.19.0
Product / Package Ecosystem Affected Versions Fixed Version
send
npm
< 0.19.0
0.19.0

References

Frequently Asked Questions

What is CVE-2024-43799?
CVE-2024-43799 is a security vulnerability in Send involving send vulnerable to template injection that can lead to XSS under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Send versions are affected?
Affected versions include releases prior to 0.19.0 across affected packages: send.
What version fixes CVE-2024-43799?
Upgrading to 0.19.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is send affected?
Yes, send is affected in releases prior to 0.19.0. Upgrade your dependency to 0.19.0 or later.
What is the CVSS score of CVE-2024-43799?
CVE-2024-43799 has a CVSS v3.1 base score of 5.0 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-43799?
CVE-2024-43799 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check npm dependencies for CVE-2024-43799?
Run the dependency tree command: 'npm ls send'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}