CVE-2021-4279: Starcounter-Jack JSON-Patch Prototype Pollution vulnerability
7.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.29446%
CWE
Published
12/25/2022
Updated
3/1/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
fast-json-patch | npm | < 3.1.1 | 3.1.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from insufficient validation in the applyOperation
function across all implementations (TypeScript, CommonJS, and ESM). The commit diff shows the fix added checks for both __proto__
and constructor/prototype
path segments. Prior to the patch, these functions allowed modification of prototype attributes via nested keys, as demonstrated in the PoC using paths like /constructor/prototype/polluted
. The functions' role in processing JSON Patch operations made them the entry point for uncontrolled prototype modifications.