CVE-2020-15262: Webpack subresource integrity Unprotected Dynamically Loaded Chunks Vulnerability
LOWCVE-2020-15262 is a LOW (CVSS 3.7) unprotected dynamically loaded chunks vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting Webpack subresource integrity libraries in the npm ecosystem. The issue involves unprotected dynamically loaded chunks. Remediation is available by upgrading affected packages to version 1.5.1.
CVE-2020-15262 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2020-15262
To remediate this vulnerability, upgrade all affected Webpack subresource integrity dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install webpack-subresource-integrity@1.5.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls webpack-subresource-integrity
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-15262, inspect your project dependencies using npm:
npm ls webpack-subresource-integrity
Analyze the terminal output to locate any version of Webpack subresource integrity in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.1), your application is affected.
Note: The npm ls webpack-subresource-integrity 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-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. In Webpack subresource integrity, 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
CVE-2020-15262 Affected Webpack subresource integrity Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
webpack-subresource-integrity
|
npm |
< 1.5.1
|
1.5.1
|
References
Frequently Asked Questions
What is CVE-2020-15262?
Which Webpack subresource integrity versions are affected?
What version fixes CVE-2020-15262?
Is webpack-subresource-integrity affected?
What is the CVSS score of CVE-2020-15262?
What CWE is associated with CVE-2020-15262?
How can I check npm dependencies for CVE-2020-15262?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4fc4-chg7-h8gh",
"modified" : "2021-11-19T14:40:52Z",
"published" : "2020-10-19T20:02:44Z",
"aliases" : [ "CVE-2020-15262" ],
"summary" : "Unprotected dynamically loaded chunks",
"details" : "### Impact\n\nAll dynamically loaded chunks receive an invalid integrity hash that is ignored by the browser, and therefore the browser cannot validate their integrity. This removes the additional level of protection offered by SRI for such chunks. Top-level chunks are unaffected.\n\n### Patches\n\nThis issue is patched in version 1.5.1.\n\n### Workarounds\n\nN/A\n\n### References\n\nhttps://github.com/waysact/webpack-subresource-integrity/issues/131\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Comment on [webpack-subresource-integrity issue #131](https://github.com/waysact/webpack-subresource-integrity/issues/131)\n* Or email us at [security@waysact.com](mailto:security@waysact.com)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "webpack-subresource-integrity"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.5.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/waysact/webpack-subresource-integrity/security/advisories/GHSA-4fc4-chg7-h8gh"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15262"
}, {
"type" : "WEB",
"url" : "https://github.com/waysact/webpack-subresource-integrity/issues/131"
}, {
"type" : "WEB",
"url" : "https://github.com/waysact/webpack-subresource-integrity/commit/3d7090c08c333fcfb10ad9e2d6cf72e2acb7d87f"
}, {
"type" : "WEB",
"url" : "https://github.com/waysact/webpack-subresource-integrity"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-345" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2020-10-19T20:02:31Z",
"nvd_published_at" : "2020-10-19T20:15:00Z"
}
}