CVE-2020-28503: Copy props Prototype Pollution Vulnerability

HIGH
Advisory Identifier: GHSA-897m-rjf5-jp39
CVSS 7.3
CWE-1321
Published
Advisory Summary

CVE-2020-28503 is a HIGH (CVSS 7.3) prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Copy props libraries in the npm ecosystem. The issue involves prototype pollution in copy-props. Remediation is available by upgrading affected packages to version 2.0.5.

CVE-2020-28503 at a Glance

CVE Identifier CVE-2020-28503
GHSA Identifier GHSA-897m-rjf5-jp39
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Copy props
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2020-28503

To remediate this vulnerability, upgrade all affected Copy props dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

copy-props fixed: 2.0.5
npm install copy-props@2.0.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls copy-props

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2020-28503, inspect your project dependencies using npm:

npm ls copy-props

Analyze the terminal output to locate any version of Copy props in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.5), your application is affected.

Note: The npm ls copy-props command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Copy props, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The package copy-props before 2.0.5 are vulnerable to Prototype Pollution via the main functionality.

CVE-2020-28503 Affected Copy props Versions

1 component(s)
Fixed Versions:
2.0.5
Product / Package Ecosystem Affected Versions Fixed Version
copy-props
npm
< 2.0.5
2.0.5

References

Frequently Asked Questions

What is CVE-2020-28503?
CVE-2020-28503 is a security vulnerability in Copy props involving Prototype Pollution in copy-props under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Copy props versions are affected?
Affected versions include releases prior to 2.0.5 across affected packages: copy-props.
What version fixes CVE-2020-28503?
Upgrading to 2.0.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is copy-props affected?
Yes, copy-props is affected in releases prior to 2.0.5. Upgrade your dependency to 2.0.5 or later.
What is the CVSS score of CVE-2020-28503?
CVE-2020-28503 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2020-28503?
CVE-2020-28503 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for CVE-2020-28503?
Run the dependency tree command: 'npm ls copy-props'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-897m-rjf5-jp39",
  "modified" : "2021-03-24T23:59:08Z",
  "published" : "2022-01-06T20:35:05Z",
  "aliases" : [ "CVE-2020-28503" ],
  "summary" : "Prototype Pollution in copy-props",
  "details" : "The package copy-props before 2.0.5 are vulnerable to Prototype Pollution via the main functionality.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "copy-props"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-28503"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gulpjs/copy-props/pull/7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gulpjs/copy-props/commit/2c738f5c52cfb384b43d977a56a3ab7ce465df9b"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088047"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-COPYPROPS-1082870"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-03-24T23:59:08Z",
    "nvd_published_at" : "2021-03-23T10:15:00Z"
  }
}