Vulnerabilities in pkg:npm/aws-lambda-multipart-parser

PACKAGE
Advisory Identifier: GHSA-6jqp-j69q-pm62
Advisory Summary

CVE-2018-7560 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-20: Improper Input Validation) affecting Aws lambda multipart parser libraries in the npm ecosystem. The issue involves aws lambda parser is vulnerable to regular expression denial of service. Remediation is available by upgrading affected packages to version 0.1.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/aws-lambda-multipart-parser

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/aws-lambda-multipart-parser. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6jqp-j69q-pm62 CVE-2018-7560 HIGH AWS Lambda parser is vulnerable to Regular Expression Denial of Service

CVE-2018-7560 at a Glance

CVE Identifier CVE-2018-7560
GHSA Identifier GHSA-6jqp-j69q-pm62
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Aws lambda multipart parser
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:N/I:N/A:H).

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 None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2018-7560

To remediate this vulnerability, upgrade all affected Aws lambda multipart parser dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

aws-lambda-multipart-parser fixed: 0.1.2
npm install aws-lambda-multipart-parser@0.1.2
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 aws-lambda-multipart-parser

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2018-7560, inspect your project dependencies using npm:

npm ls aws-lambda-multipart-parser

Analyze the terminal output to locate any version of Aws lambda multipart parser in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.2), your application is affected.

Note: The npm ls aws-lambda-multipart-parser 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Aws lambda multipart parser, 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

index.js in the aws-lambda-multipart-parser NPM package before 0.1.2 has a Regular Expression Denial of Service (ReDoS) issue via a crafted multipart/form-data boundary string.

CVE-2018-7560 Affected Aws lambda multipart parser Versions

1 component(s)
Fixed Versions:
0.1.2
Product / Package Ecosystem Affected Versions Fixed Version
aws-lambda-multipart-parser
npm
< 0.1.2
0.1.2

References

Frequently Asked Questions

What is CVE-2018-7560?
CVE-2018-7560 is a security vulnerability in Aws lambda multipart parser involving AWS Lambda parser is vulnerable to Regular Expression Denial of Service under CWE-20: Improper Input Validation.
Which Aws lambda multipart parser versions are affected?
Affected versions include releases prior to 0.1.2 across affected packages: aws-lambda-multipart-parser.
What version fixes CVE-2018-7560?
Upgrading to 0.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aws-lambda-multipart-parser affected?
Yes, aws-lambda-multipart-parser is affected in releases prior to 0.1.2. Upgrade your dependency to 0.1.2 or later.
What is the CVSS score of CVE-2018-7560?
CVE-2018-7560 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2018-7560?
CVE-2018-7560 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check npm dependencies for CVE-2018-7560?
Run the dependency tree command: 'npm ls aws-lambda-multipart-parser'. 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-6jqp-j69q-pm62",
  "modified" : "2022-04-25T22:28:16Z",
  "published" : "2018-03-05T19:16:56Z",
  "aliases" : [ "CVE-2018-7560" ],
  "summary" : "AWS Lambda parser is vulnerable to Regular Expression Denial of Service",
  "details" : "index.js in the aws-lambda-multipart-parser NPM package before 0.1.2 has a Regular Expression Denial of Service (ReDoS) issue via a crafted multipart/form-data boundary string.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "aws-lambda-multipart-parser"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-7560"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/myshenin/aws-lambda-multipart-parser/commit/56ccb03af4dddebc2b2defb348b6558783d5757e"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-6jqp-j69q-pm62"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/myshenin/aws-lambda-multipart-parser"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:19:35Z",
    "nvd_published_at" : null
  }
}