CVE-2022-37611:
tschaub gh-pages vulnerable to prototype pollution
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.30985%
CWE
Published
10/12/2022
Updated
4/22/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
gh-pages | npm | < 5.0.0 | 5.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from using a regular object ({}) to track directories in uniqueDirs
function. When processing file paths, the 'partial' variable (constructed from path segments) is used as a key without sanitization. This allows prototype pollution through specially crafted file paths. The fix in commit #452 replaced the object with a Set
, which confirms the vulnerability was in this object-based implementation. The references to lines 11 and 16 in util.js
point directly to this path processing logic.