Vulnerabilities in pkg:npm/bootstrap

PACKAGE
Advisory Identifier: GHSA-q58r-hwc8-rm9j
Advisory Summary

CVE-2025-1647 is a MODERATE (CVSS 5.6) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Bootstrap libraries in the npm ecosystem. The issue involves bootstrap vulnerable to cross-site scripting in its popover and tooltip components. Remediation is available in the latest vendor maintenance releases.

11 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/bootstrap

11 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/bootstrap. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-q58r-hwc8-rm9j CVE-2025-1647 MODERATE Bootstrap Vulnerable to Cross-Site Scripting in its Popover and Tooltip Components
GHSA-7mvr-5x2g-wfc8 CVE-2018-14042 MODERATE Bootstrap Cross-site Scripting vulnerability
GHSA-9v3m-8fp8-mj99 CVE-2019-8331 MODERATE Bootstrap Vulnerable to Cross-Site Scripting
GHSA-pj7m-g53m-7638 CVE-2018-14041 MODERATE Bootstrap Cross-site Scripting vulnerability
GHSA-vxmc-5x29-h64v CVE-2024-6485 MODERATE Bootstrap Cross-Site Scripting (XSS) vulnerability for data-* attributes
GHSA-vc8w-jr9v-vj7f CVE-2024-6531 MODERATE Withdrawn Advisory: Bootstrap Cross-Site Scripting (XSS) vulnerability
GHSA-9mvj-f7w8-pvh2 CVE-2024-6484 MODERATE Withdrawn Advisory: Bootstrap Cross-Site Scripting (XSS) vulnerability
GHSA-3wqf-4x89-9g79 CVE-2018-14040 MODERATE Bootstrap vulnerable to Cross-Site Scripting (XSS)
GHSA-3mgp-fx93-9xv5 CVE-2018-20676 MODERATE XSS vulnerability that affects bootstrap
GHSA-ph58-4vrj-w6hr CVE-2018-20677 MODERATE bootstrap Cross-site Scripting vulnerability
GHSA-4p24-vmcr-4gqj CVE-2016-10735 MODERATE Bootstrap Cross-site Scripting vulnerability

CVE-2025-1647 at a Glance

CVE Identifier CVE-2025-1647
GHSA Identifier GHSA-q58r-hwc8-rm9j
Severity MODERATE
CVSS v3.1 Base Score 5.6
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Bootstrap
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.6

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:L/A:L).

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 Low (I:L)
Availability Low (A:L)

How to Fix CVE-2025-1647

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

bootstrap fixed: Latest secure release
npm install bootstrap@Latest secure release
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 bootstrap

How to Check if You Are Affected

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

npm ls bootstrap

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

Note: The npm ls bootstrap 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Bootstrap, 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

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Bootstrap allows Cross-Site Scripting (XSS). This issue affects Bootstrap version 3.4.1. At time of publication, there is no publicly available patched version.

CVE-2025-1647 Affected Bootstrap Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
bootstrap
npm
3.4.1
All 1 versions
3.4.1
None specified

References

Frequently Asked Questions

What is CVE-2025-1647?
CVE-2025-1647 is a security vulnerability in Bootstrap involving Bootstrap Vulnerable to Cross-Site Scripting in its Popover and Tooltip Components under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Bootstrap versions are affected?
Affected versions include releases prior to current release patches across affected packages: bootstrap.
What version fixes CVE-2025-1647?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is bootstrap affected?
Yes, bootstrap is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-1647?
CVE-2025-1647 has a CVSS v3.1 base score of 5.6 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2025-1647?
CVE-2025-1647 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for CVE-2025-1647?
Run the dependency tree command: 'npm ls bootstrap'. 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-q58r-hwc8-rm9j",
  "modified" : "2026-10-09T12:31:14Z",
  "published" : "2025-05-15T18:31:47Z",
  "aliases" : [ "CVE-2025-1647" ],
  "summary" : "Bootstrap Vulnerable to Cross-Site Scripting in its Popover and Tooltip Components",
  "details" : "Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Bootstrap allows Cross-Site Scripting (XSS). This issue affects Bootstrap version 3.4.1. At time of publication, there is no publicly available patched version.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "bootstrap"
    },
    "versions" : [ "3.4.1" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-1647"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/twbs/bootstrap"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2025/06/msg00001.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2026/10/msg00023.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.herodevs.com/vulnerability-directory/cve-2025-1647"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-18T17:14:56Z",
    "nvd_published_at" : "2025-05-15T17:15:47Z"
  }
}