GHSA-9cp3-fh5x-xfcj

Suggest an improvement
Source
https://github.com/advisories/GHSA-9cp3-fh5x-xfcj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/08/GHSA-9cp3-fh5x-xfcj/GHSA-9cp3-fh5x-xfcj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9cp3-fh5x-xfcj
Aliases
Published
2018-08-09T20:55:46Z
Modified
2023-11-08T03:59:04.732980Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Regular Expression Denial of Service in charset
Details

Affected versions of charset are susceptible to a regular expression denial of service.

The amplification on this vulnerability is relatively low - it takes around 2 seconds for the engine to execute on a malicious input which is 50,000 characters in length.

If node was compiled using the -DHTTP_MAX_HEADER_SIZE however, the impact of the vulnerability can be significant, as the primary limitation for the vulnerability is the default max HTTP header length in node.

Recommendation

Update to version 1.0.1 or later.

Database specific
{
    "nvd_published_at": null,
    "github_reviewed_at": "2020-06-16T21:28:14Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-400"
    ]
}
References

Affected packages

npm / charset

Package

Affected ranges

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