CVE-2022-32214: Llhttp Llhttp Allows HTTP Request Smuggling Vulnerability

CRITICAL
Advisory Identifier: GHSA-q5vx-44v4-gch4
CVSS 9.1
CWE-444
Published
Advisory Summary

CVE-2022-32214 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 improper delimiting of header fields. Remediation is available by upgrading affected packages to version 6.0.7.

CVE-2022-32214 at a Glance

CVE Identifier CVE-2022-32214
GHSA Identifier GHSA-q5vx-44v4-gch4
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')
Affected Product Llhttp
Package Ecosystem npm
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2022-32214

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.

llhttp fixed: 6.0.7
npm install llhttp@6.0.7
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 llhttp

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2022-32214, 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

The llhttp parser in the http module in Node.js does not strictly use the CRLF sequence to delimit HTTP requests. The LF character (without CR) is sufficient to delimit HTTP header fields in the lihttp parser. According to RFC7230 section 3, only the CRLF sequence should delimit each header-field. This can lead to HTTP Request Smuggling (HRS).

CVE-2022-32214 Affected Llhttp Versions

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

References

Frequently Asked Questions

What is CVE-2022-32214?
CVE-2022-32214 is a security vulnerability in Llhttp involving llhttp allows HTTP Request Smuggling via Improper Delimiting of Header Fields under CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling').
Which Llhttp versions are affected?
Affected versions include releases prior to 6.0.7 across affected packages: llhttp.
What version fixes CVE-2022-32214?
Upgrading to 6.0.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is llhttp affected?
Yes, llhttp is affected in releases prior to 6.0.7. Upgrade your dependency to 6.0.7 or later.
What is the CVSS score of CVE-2022-32214?
CVE-2022-32214 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2022-32214?
CVE-2022-32214 is classified under CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') (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.).
How can I check npm dependencies for CVE-2022-32214?
Run the dependency tree command: 'npm ls llhttp'. 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-q5vx-44v4-gch4",
  "modified" : "2023-07-11T00:18:17Z",
  "published" : "2022-07-15T00:00:18Z",
  "aliases" : [ "CVE-2022-32214" ],
  "summary" : "llhttp allows HTTP Request Smuggling via Improper Delimiting of Header Fields",
  "details" : "The llhttp parser in the http module in Node.js does not strictly use the CRLF sequence to delimit HTTP requests. The LF character (without CR) is sufficient to delimit HTTP header fields in the lihttp parser. According to RFC7230 section 3, only the CRLF sequence should delimit each header-field. This can lead to HTTP Request Smuggling (HRS).",
  "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-32214"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nodejs/llhttp/commit/18a4afc7ffb4e49dc9e2daebc50588199a6d1dbb"
  }, {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/1524692"
  }, {
    "type" : "WEB",
    "url" : "https://datatracker.ietf.org/doc/html/rfc7230#section-3"
  }, {
    "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-11T00:18:17Z",
    "nvd_published_at" : "2022-07-14T15:15:00Z"
  }
}