GitHub Advisoryadvisory · npm

GHSA-6gp3-h3jj-prx4 Prototype pollution in class-transformer

MEDIUM Published 2020-04-07 Modified 2022-04-28 Official page ↗
Aliases
CVE-2020-7637
Ecosystem
npm
Packages
class-transformer
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weaknesses
CWE-1321, CWE-915
Reviewed
2020-04-07

Affected packages

• npm class-transformer: < 0.3.1 → fixed in 0.3.1

Description

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.

Related

Alias · CVE (1)

  • CVE-2020-7637 class-transformer before 0.3.1 allow attackers to perform Prototype Pollution. vulnerability

Weakness · CWE (2)

  • CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness
  • CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes weakness

References