CVE-2020-7637: Prototype pollution in class-transformer
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.54282%
CWE
Published
4/7/2020
Updated
1/27/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
class-transformer | npm | < 0.3.1 | 0.3.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
- The CVE/GHSA explicitly names 'classToPlainFromExist' as the vulnerable entry point.
- The patch adds key filtering for 'proto' and 'constructor' in TransformOperationExecutor.ts, which is invoked by classToPlainFromExist.
- The added test cases directly target classToPlainFromExist with prototype pollution payloads.
- The vulnerability manifests when processing nested objects during transformation, which is handled by this function's execution flow.