CVE-2019-8331 · mitre
CVE-2019-8331
In Bootstrap before 3.4.1 and 4.3.x before 4.3.1, XSS is possible in the tooltip or popover data-template attribute.
Published 2019-02-20, last changed 2026-06-17. Weakness: CWE-79.
How to fix
Upgrade to a fixed version: bootstrap 4.3.1 (RubyGems); bootstrap-sass 3.4.1 (RubyGems); Bootstrap.Less 3.4.1 (NuGet); bootstrap 3.4.1, 4.3.1 (NuGet); bootstrap.sass 4.3.1 (NuGet); bootstrap 3.4.1, 4.3.1 (npm) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in twbs/bootstrap by pull request #28236. Functions changed by the fix: allowedAttribute, sanitizeHtml, setElementContent, _getConfig. Regression tests: js/tests/unit/tooltip.js. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2019-02-20 | Published |
| 2019-02-22 | Package advisory GHSA-9v3m-8fp8-mj99 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 16.4% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-9v3m-8fp8-mj99 | bootstrap (RubyGems) | 4.3.1 |
| GHSA-9v3m-8fp8-mj99 | bootstrap-sass (RubyGems) | 3.4.1 |
| GHSA-9v3m-8fp8-mj99 | Bootstrap.Less (NuGet) | 3.4.1 |
| GHSA-9v3m-8fp8-mj99 | bootstrap (NuGet) | 4.3.1 |
| GHSA-9v3m-8fp8-mj99 | bootstrap (NuGet) | 3.4.1 |
Also known as: GHSA-9v3m-8fp8-mj99
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2018-20677 | 2019-01-09 | 6.1 | same package: bootstrap (RubyGems) |
| CVE-2018-20676 | 2019-01-09 | 6.1 | same package: bootstrap (RubyGems) |
| CVE-2016-10735 | 2019-01-09 | 6.1 | same package: bootstrap (RubyGems) |
| CVE-2018-14042 | 2018-07-13 | 6.1 | same package: bootstrap (RubyGems) |
| CVE-2018-14041 | 2018-07-13 | 6.1 | same package: bootstrap (RubyGems) |
| CVE-2018-14040 | 2018-07-13 | 6.1 | same package: bootstrap (RubyGems) |
| CVE-2019-10842 | 2019-04-04 | 9.8 | same package: bootstrap-sass (RubyGems) |
| CVE-2026-137713 | 2026-11-27 | 6.4 | same weakness (CWE-79) from the same CNA (mitre) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2019-8331, or call /api/v1/vulnerabilities/CVE-2019-8331. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.