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.test.osv.dev/v1/vulns/GHSA-6gp3-h3jj-prx4
Aliases
Published
2020-04-07T15:47:40Z
Modified
2025-01-08T07:43:20.544108Z
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
{
    "github_reviewed": true,
    "nvd_published_at": "2020-04-06T13:15:00Z",
    "cwe_ids": [
        "CWE-1321",
        "CWE-915"
    ],
    "github_reviewed_at": "2020-04-07T15:46:31Z",
    "severity": "MODERATE"
}
References

Affected packages

npm / class-transformer

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown 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"