Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTZncDMtaDNqai1wcng0
Prototype pollution in class-transformer
class-transformer through 0.2.3 is vulnerable to Prototype Pollution. The 'classToPlainFromExist' function could be tricked into adding or modifying properties of 'Object.prototype' using a 'proto' payload.
Permalink: https://github.com/advisories/GHSA-6gp3-h3jj-prx4JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTZncDMtaDNqai1wcng0
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: almost 5 years ago
Updated: almost 2 years ago
CVSS Score: 5.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS Percentage: 0.00126
EPSS Percentile: 0.47764
Identifiers: GHSA-6gp3-h3jj-prx4, CVE-2020-7637
References:
- https://nvd.nist.gov/vuln/detail/CVE-2020-7637
- https://github.com/typestack/class-transformer/blob/a650d9f490573443f62508bc063b857bcd5e2525/src/ClassTransformer.ts#L29-L31,
- https://snyk.io/vuln/SNYK-JS-CLASSTRANSFORMER-564431
- https://github.com/typestack/class-transformer/commit/8f04eb9db02de708f1a20f6f2d2bb309b2fed01e
- https://github.com/advisories/GHSA-6gp3-h3jj-prx4
Blast Radius: 25.0
Affected Packages
npm:class-transformer
Dependent packages: 3,730Dependent repositories: 53,190
Downloads: 16,216,218 last month
Affected Version Ranges: < 0.3.1
Fixed in: 0.3.1
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.2.0, 0.2.1, 0.2.2, 0.2.3
All unaffected versions: 0.3.1, 0.3.2, 0.4.0, 0.4.1, 0.5.0, 0.5.1