CVE-2022-32213: Llhttp Llhttp Allows HTTP Request Smuggling Vulnerability
CRITICALCVE-2022-32213 is a CRITICAL (CVSS 9.1) llhttp allows http request smuggling vulnerability (CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')) affecting Llhttp libraries in the npm ecosystem. The issue involves llhttp allows http request smuggling via flawed parsing of transfer-encoding. Remediation is available by upgrading affected packages to version 6.0.7.
CVE-2022-32213 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2022-32213
To remediate this vulnerability, upgrade all affected Llhttp 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 llhttp@6.0.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls llhttp
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-32213, inspect your project dependencies using npm:
npm ls llhttp
Analyze the terminal output to locate any version of Llhttp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.0.7), your application is affected.
Note: The npm ls llhttp 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-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling'), where the product acts as an intermediary http agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed http requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination. In Llhttp, 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-2022-32213 Affected Llhttp Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
llhttp
|
npm |
< 6.0.7
|
6.0.7
|
References
Frequently Asked Questions
What is CVE-2022-32213?
Which Llhttp versions are affected?
What version fixes CVE-2022-32213?
Is llhttp affected?
What is the CVSS score of CVE-2022-32213?
What CWE is associated with CVE-2022-32213?
How can I check npm dependencies for CVE-2022-32213?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5689-v88g-g6rv",
"modified" : "2023-07-10T21:31:51Z",
"published" : "2022-07-15T00:00:18Z",
"aliases" : [ "CVE-2022-32213" ],
"summary" : "llhttp allows HTTP Request Smuggling via Flawed Parsing of Transfer-Encoding",
"details" : "The llhttp parser in the http module in Node.js v17.x does not correctly parse and validate Transfer-Encoding headers and can lead to HTTP Request Smuggling (HRS).\n\nImpacts:\n\n- All versions of the nodejs 18.x, 16.x, and 14.x releases lines.\n- llhttp v6.0.7 and llhttp v2.1.5 contains the fixes that were updated inside Node.js",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "llhttp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.0.7"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-32213"
}, {
"type" : "WEB",
"url" : "https://github.com/nodejs/llhttp/commit/18a4afc7ffb4e49dc9e2daebc50588199a6d1dbb"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/1524555"
}, {
"type" : "WEB",
"url" : "https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2ICG6CSIB3GUWH5DUSQEVX53MOJW7LYK"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QCNN3YG2BCLS4ZEKJ3CLSUT6AS7AXTH3"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VMQK5L5SBYD47QQZ67LEMHNQ662GH3OY"
}, {
"type" : "WEB",
"url" : "https://nodejs.org/en/blog/vulnerability/july-2022-security-releases"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20220915-0001"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2023/dsa-5326"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-444" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-10T21:31:51Z",
"nvd_published_at" : "2022-07-14T15:15:00Z"
}
}