GHSA-w5q7-3pr9-x44w: Serialize to js Denial of Service Vulnerability

HIGH
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-w5q7-3pr9-x44w
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Serialize to js
Package Ecosystem npm
Published Date
Last Updated

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.

serialize-to-js fixed: 2.0.0
npm install serialize-to-js@2.0.0
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 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

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. ## Recommendation Upgrade to version 2.0.0 or later.

GHSA-w5q7-3pr9-x44w Affected Serialize to js Versions

1 component(s)
Fixed Versions:
2.0.0
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?
GHSA-w5q7-3pr9-x44w is a security vulnerability in Serialize to js involving Denial of Service in serialize-to-js under General Security Weakness.
Which Serialize to js versions are affected?
Affected versions include releases prior to 2.0.0 across affected packages: serialize-to-js.
What version fixes GHSA-w5q7-3pr9-x44w?
Upgrading to 2.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is serialize-to-js affected?
Yes, serialize-to-js is affected in releases prior to 2.0.0. Upgrade your dependency to 2.0.0 or later.
What CWE is associated with GHSA-w5q7-3pr9-x44w?
GHSA-w5q7-3pr9-x44w is classified under General Security Weakness.
How can I check npm dependencies for GHSA-w5q7-3pr9-x44w?
Run the dependency tree command: 'npm ls serialize-to-js'. 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-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
  }
}