GHSA-w5q7-3pr9-x44w: Serialize to js Denial of Service Vulnerability
HIGHGHSA-w5q7-3pr9-x44w is a HIGH denial of service vulnerability (General Security Weakness) affecting Serialize to js libraries in the npm ecosystem. The issue involves denial of service in serialize-to-js. Remediation is available by upgrading affected packages to version 2.0.0.
GHSA-w5q7-3pr9-x44w at a Glance
How to Fix GHSA-w5q7-3pr9-x44w
To remediate this vulnerability, upgrade all affected Serialize to js 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 serialize-to-js@2.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls serialize-to-js
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-w5q7-3pr9-x44w, inspect your project dependencies using npm:
npm ls serialize-to-js
Analyze the terminal output to locate any version of Serialize to js in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), your application is affected.
Note: The npm ls serialize-to-js 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 General Security Weakness. In Serialize to js, 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
GHSA-w5q7-3pr9-x44w Affected Serialize to js Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
serialize-to-js
|
npm |
< 2.0.0
|
2.0.0
|
References
Frequently Asked Questions
What is GHSA-w5q7-3pr9-x44w?
Which Serialize to js versions are affected?
What version fixes GHSA-w5q7-3pr9-x44w?
Is serialize-to-js affected?
What CWE is associated with GHSA-w5q7-3pr9-x44w?
How can I check npm dependencies for GHSA-w5q7-3pr9-x44w?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w5q7-3pr9-x44w",
"modified" : "2020-08-31T18:35:52Z",
"published" : "2020-09-02T15:59:19Z",
"aliases" : [ ],
"summary" : "Denial of Service in serialize-to-js",
"details" : "Versions of `serialize-to-js` prior to 2.0.0 are vulnerable to Denial of Service. User input is not properly validated, allowing attackers to provide inputs that lead the execution to loop indefinitely.\n\n\n## Recommendation\n\nUpgrade to version 2.0.0 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "serialize-to-js"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/790"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:35:52Z",
"nvd_published_at" : null
}
}