All CVEs / Class-transformer Project
CVE-2020-7637Class-transformer Project Class-transformer
Medium 5.3 No auth needed
Follow: this CVE · Class-transformer Project · Class-transformer Project Class-transformer We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 68
- Auth required
- No
- Published
- Apr 6, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1321
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Class-transformer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | class-transformer |
< 0.3.1 |
0.3.1 |
npm install class-transformer@0.3.1 |
Per OSV / GitHub Advisories (GHSA-6gp3-h3jj-prx4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| class-transformer_project | class-transformer | < 0.3.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- snyk.io Exploit Third Party Advisory