Vulnerabilities in pkg:npm/webpack-subresource-integrity

PACKAGE
Advisory Identifier: GHSA-4fc4-chg7-h8gh
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/webpack-subresource-integrity

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/webpack-subresource-integrity. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-4fc4-chg7-h8gh CVE-2020-15262 LOW Unprotected dynamically loaded chunks

CVE-2020-15262 at a Glance

CVE Identifier CVE-2020-15262
GHSA Identifier GHSA-4fc4-chg7-h8gh
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product Webpack subresource integrity
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

webpack-subresource-integrity fixed: 1.5.1
npm install webpack-subresource-integrity@1.5.1
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 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

### Impact All 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. ### Patches This issue is patched in version 1.5.1. ### Workarounds N/A ### References https://github.com/waysact/webpack-subresource-integrity/issues/131 ### For more information If you have any questions or comments about this advisory: * Comment on [webpack-subresource-integrity issue #131](https://github.com/waysact/webpack-subresource-integrity/issues/131) * Or email us at [security@waysact.com](mailto:security@waysact.com)

CVE-2020-15262 Affected Webpack subresource integrity Versions

1 component(s)
Fixed Versions:
1.5.1
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?
CVE-2020-15262 is a security vulnerability in Webpack subresource integrity involving Unprotected dynamically loaded chunks under CWE-345: Insufficient Verification of Data Authenticity.
Which Webpack subresource integrity versions are affected?
Affected versions include releases prior to 1.5.1 across affected packages: webpack-subresource-integrity.
What version fixes CVE-2020-15262?
Upgrading to 1.5.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is webpack-subresource-integrity affected?
Yes, webpack-subresource-integrity is affected in releases prior to 1.5.1. Upgrade your dependency to 1.5.1 or later.
What is the CVSS score of CVE-2020-15262?
CVE-2020-15262 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2020-15262?
CVE-2020-15262 is classified under CWE-345: Insufficient Verification of Data Authenticity (The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.).
How can I check npm dependencies for CVE-2020-15262?
Run the dependency tree command: 'npm ls webpack-subresource-integrity'. 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-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"
  }
}