Vulnerabilities in pkg:npm/@lambda-middleware/json-deserializer
PACKAGECVE-2021-4437 is a LOW (CVSS 3.5) lambda-middleware inefficient regular expression complexity vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting @lambda middleware/json deserializer libraries in the npm ecosystem. The issue involves lambda-middleware inefficient regular expression complexity vulnerability. Remediation is available by upgrading affected packages to version 1.1.0.
pkg:npm/@lambda-middleware/json-deserializer
Vulnerability advisories affecting package pkg:npm/@lambda-middleware/json-deserializer. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-m3f4-957x-m785 | CVE-2021-4437 | LOW | lambda-middleware Inefficient Regular Expression Complexity vulnerability |
CVE-2021-4437 at a Glance
Security Impact
CVSS: 3.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2021-4437
To remediate this vulnerability, upgrade all affected @lambda middleware/json deserializer 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 @lambda-middleware/json-deserializer@1.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @lambda-middleware/json-deserializer
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2021-4437, inspect your project dependencies using npm:
npm ls @lambda-middleware/json-deserializer
Analyze the terminal output to locate any version of @lambda middleware/json deserializer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0), your application is affected.
Note: The npm ls @lambda-middleware/json-deserializer 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-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In @lambda middleware/json deserializer, 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-2021-4437 Affected @lambda middleware/json deserializer Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@lambda-middleware/json-deserializer
|
npm |
< 1.1.0
|
1.1.0
|
References
Frequently Asked Questions
What is CVE-2021-4437?
Which @lambda middleware/json deserializer versions are affected?
What version fixes CVE-2021-4437?
Is @lambda-middleware/json-deserializer affected?
What is the CVSS score of CVE-2021-4437?
What CWE is associated with CVE-2021-4437?
How can I check npm dependencies for CVE-2021-4437?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m3f4-957x-m785",
"modified" : "2024-03-01T14:41:48Z",
"published" : "2024-02-12T21:30:55Z",
"aliases" : [ "CVE-2021-4437" ],
"summary" : "lambda-middleware Inefficient Regular Expression Complexity vulnerability",
"details" : "A vulnerability, which was classified as problematic, has been found in dbartholomae lambda-middleware frameguard up to 1.0.4. Affected by this issue is some unknown functionality of the file packages/json-deserializer/src/JsonDeserializer.ts of the component JSON Mime-Type Handler. The manipulation leads to inefficient regular expression complexity. Upgrading to version 1.1.0 is able to address this issue. The patch is identified as f689404d830cbc1edd6a1018d3334ff5f44dc6a6. It is recommended to upgrade the affected component. VDB-253406 is the identifier assigned to this vulnerability.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@lambda-middleware/json-deserializer"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-4437"
}, {
"type" : "WEB",
"url" : "https://github.com/dbartholomae/lambda-middleware/pull/57"
}, {
"type" : "WEB",
"url" : "https://github.com/dbartholomae/lambda-middleware/commit/f689404d830cbc1edd6a1018d3334ff5f44dc6a6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dbartholomae/lambda-middleware"
}, {
"type" : "WEB",
"url" : "https://github.com/dbartholomae/lambda-middleware/releases/tag/%40lambda-middleware%2Fframeguard_v1.1.0"
}, {
"type" : "WEB",
"url" : "https://github.com/dbartholomae/lambda-middleware/releases/tag/@lambda-middleware/frameguard_v1.1.0"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.253406"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.253406"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-12T22:39:30Z",
"nvd_published_at" : "2024-02-12T20:15:07Z"
}
}