# CVE-2020-7637: Prototype pollution in class-transformer

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.19%, higher than 68% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-04-06T12:34:54.000Z
- Modified: 2026-07-08T06:49:53.325Z
- Also known as: GHSA-6gp3-h3jj-prx4, SNYK-JS-CLASSTRANSFORMER-564431
- Weaknesses: CWE-915, CWE-1321
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- class-transformer: All versions prior to version 0.3.1
- class-transformer (npm): before 0.3.1
- class-transformer_project class-transformer: before 0.3.1

## Every score

- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://snyk.io/vuln/SNYK-JS-CLASSTRANSFORMER-564431> (exploit, third-party-advisory, web)
- <https://github.com/typestack/class-transformer/commit/8f04eb9db02de708f1a20f6f2d2bb309b2fed01e> (patch, 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)

## Sources

- CVE List: [CVE-2020-7637](https://www.cve.org/CVERecord?id=CVE-2020-7637), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-6gp3-h3jj-prx4](https://github.com/advisories/GHSA-6gp3-h3jj-prx4), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-7637](https://nvd.nist.gov/vuln/detail/CVE-2020-7637), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-7637 · Whole record: https://cve.day/CVE-2020-7637.json · Rebuilt by cve.day 2026-11-25T22:57:51.789Z
