GHSA-4hpf-3wq7-5rpr

Suggest an improvement
Source
https://github.com/advisories/GHSA-4hpf-3wq7-5rpr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-4hpf-3wq7-5rpr/GHSA-4hpf-3wq7-5rpr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4hpf-3wq7-5rpr
Aliases
Published
2022-01-06T20:44:07Z
Modified
2023-11-08T03:59:45.221407Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
Regular expression deinal of service (ReDoS) in is-my-json-valid
Details

It was discovered that the is-my-json-valid JavaScript library used an inefficient regular expression to validate JSON fields defined to have email format. A specially crafted JSON file could cause it to consume an excessive amount of CPU time when validated.

Database specific
{
    "cwe_ids": [
        "CWE-400"
    ],
    "github_reviewed_at": "2021-03-31T21:45:17Z",
    "nvd_published_at": "2021-03-30T02:15:00Z",
    "severity": "MODERATE",
    "github_reviewed": true
}
References

Affected packages

npm / is-my-json-valid

Package

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.17.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-4hpf-3wq7-5rpr/GHSA-4hpf-3wq7-5rpr.json"

npm / is-my-json-valid

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.4.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-4hpf-3wq7-5rpr/GHSA-4hpf-3wq7-5rpr.json"