GHSA-6gp3-h3jj-prx4

Suggest an improvement
Source
https://github.com/advisories/GHSA-6gp3-h3jj-prx4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-6gp3-h3jj-prx4/GHSA-6gp3-h3jj-prx4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6gp3-h3jj-prx4
Aliases
Published
2020-04-07T15:47:40Z
Modified
2026-07-08T06:49:53Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
Prototype pollution in class-transformer
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-1321",
        "CWE-915"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-04-07T15:46:31Z",
    "nvd_published_at":  "2020-04-06T13:15:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / class-transformer

Package

Name
class-transformer
View open source insights on deps.dev
Purl
pkg:npm/class-transformer

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.3.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/04/GHSA-6gp3-h3jj-prx4/GHSA-6gp3-h3jj-prx4.json"