GHSA-4x7c-cx64-49w8: Is my json valid Denial of Service Vulnerability

LOW
Published
Advisory Summary

GHSA-4x7c-cx64-49w8 is a LOW denial of service vulnerability (General Security Weakness) affecting Is my json valid libraries in the npm ecosystem. The issue involves regular expression denial of service in is-my-json-valid. Remediation is available by upgrading affected packages to version 2.17.2, 1.4.1.

GHSA-4x7c-cx64-49w8 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-4x7c-cx64-49w8
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Is my json valid
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-4x7c-cx64-49w8

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

is-my-json-valid fixed: 2.17.2
npm install is-my-json-valid@2.17.2
is-my-json-valid fixed: 1.4.1
npm install is-my-json-valid@1.4.1
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 is-my-json-valid

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-4x7c-cx64-49w8, inspect your project dependencies using npm:

npm ls is-my-json-valid

Analyze the terminal output to locate any version of Is my json valid in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.17.2), your application is affected.

Note: The npm ls is-my-json-valid 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 Is my json valid, 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

Withdrawn: Duplicate of GHSA-f522-ffg8-j8r6

GHSA-4x7c-cx64-49w8 Affected Is my json valid Versions

2 component(s)
Fixed Versions:
2.17.21.4.1
Product / Package Ecosystem Affected Versions Fixed Version
is-my-json-valid
npm
≥ 2.0.0
< 2.17.2
2.17.2
is-my-json-valid
npm
< 1.4.1
1.4.1

References

Frequently Asked Questions

What is GHSA-4x7c-cx64-49w8?
GHSA-4x7c-cx64-49w8 is a security vulnerability in Is my json valid involving Regular Expression Denial of Service in is-my-json-valid under General Security Weakness.
Which Is my json valid versions are affected?
Affected versions include releases prior to 2.17.2, 1.4.1 across affected packages: is-my-json-valid.
What version fixes GHSA-4x7c-cx64-49w8?
Upgrading to 2.17.2, 1.4.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is is-my-json-valid affected?
Yes, is-my-json-valid is affected in releases prior to 2.17.2, 1.4.1. Upgrade your dependency to 2.17.2, 1.4.1 or later.
What CWE is associated with GHSA-4x7c-cx64-49w8?
GHSA-4x7c-cx64-49w8 is classified under General Security Weakness.
How can I check npm dependencies for GHSA-4x7c-cx64-49w8?
Run the dependency tree command: 'npm ls is-my-json-valid'. 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-4x7c-cx64-49w8",
  "modified" : "2020-08-19T22:06:03Z",
  "published" : "2020-08-19T22:06:03Z",
  "withdrawn" : "2020-08-19T22:06:03Z",
  "aliases" : [ ],
  "summary" : "Regular Expression Denial of Service in is-my-json-valid",
  "details" : "Withdrawn: Duplicate of GHSA-f522-ffg8-j8r6",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "is-my-json-valid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.17.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "is-my-json-valid"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mafintosh/is-my-json-valid/pull/159"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mafintosh/is-my-json-valid/commit/b3051b277f7caa08cd2edc6f74f50aeda65d2976"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-06-12T16:28:24Z",
    "nvd_published_at" : null
  }
}