CVE-2020-7637
MEDIUM 5.3CVSS 3.1Prototype pollution in class-transformer
class-transformer before 0.3.1 allow attackers to perform Prototype Pollution. The classToPlainFromExist function could be tricked into adding or modifying properties of Object.prototype using a proto payload.
- Published
- 6 Apr 2020
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1321CWE-915
- Also known as
- GHSA-6gp3-h3jj-prx4SNYK-JS-CLASSTRANSFORMER-564431
- Sources
- NVDJSONOSV GHSA-6gp3-h3jj-prx4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | class-transformer_project | class-transformercpe:2.3:a:class-transformer_project:class-transformer:*:*:*:*:*:node.js:*:* |
< 0.3.1 | 0.3.1 |
| OSV | npm | class-transformer | < 0.3.1 | 0.3.1 |
References
- https://github.com/typestack/class-transformer/commit/8f04eb9db02de708f1a20f6f2d2bb309b2fed01e · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-CLASSTRANSFORMER-564431 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7637 · ADVISORY
- https://github.com/typestack/class-transformer · PACKAGE
- https://github.com/typestack/class-transformer/blob/a650d9f490573443f62508bc063b857bcd5e2525/src/ClassTransformer.ts#L29-L31, · WEB
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 6 Apr 2020)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 7 Apr 2020)