CVE-2022-25918

Source
https://cve.org/CVERecord?id=CVE-2022-25918
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25918.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-25918
Aliases
Published
2022-10-27T05:05:09.944Z
Modified
2026-07-08T05:57:50.945882608Z
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 Denial of Service (ReDoS)
Details

The package shescape from 1.5.10 and before 1.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the escape function in index.js, due to the usage of insecure regex in the escapeArgBash function.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25918.json",
    "cna_assigner": "snyk"
}
References

Affected packages

Git / github.com/ericcornelissen/shescape

Affected ranges

Type
GIT
Repo
https://github.com/ericcornelissen/shescape
Events
Database specific
{
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ],
    "cpe": [
        "cpe:2.3:a:shescape_project:shescape:1.5.10:*:*:*:*:node.js:*:*",
        "cpe:2.3:a:shescape_project:shescape:1.6.0:*:*:*:*:node.js:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "1.5.10"
        },
        {
            "last_affected": "1.5.10"
        },
        {
            "introduced": "1.6.0"
        },
        {
            "last_affected": "1.6.0"
        }
    ]
}

Affected versions

1.*
1.5.10
1.6.0
v1.*
v1.5.10
v1.6.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25918.json"