Cross-site scriptingin the bootstrap package.
Proof of concept public (GitHub).
In Bootstrap before 4.1.2, XSS is possible in the data-container property of tooltip.
- Upgrade bootstrap (RubyGems) to 3.4.0, 4.1.2 or later, whichever matches your release line.
- Upgrade bootstrap (npm) to 3.4.0, 4.1.2 or later, whichever matches your release line.
- Upgrade org.webjars:bootstrap (Maven) to 3.4.0, 4.1.2 or later, whichever matches your release line.
- Upgrade twbs/bootstrap (Packagist) to 3.4.0, 4.1.2 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 13 Jul 2018CVE ID reserved by mitre.
- 13 Jul 2018Published in the CVE List.
- 23 May 2022First public proof of concept on GitHub.
- 5 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub).
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other vulnerabilities in this package
- seclists.org mailing-list, x_refsource_BUGTRAQ
- seclists.org mailing-list, x_refsource_FULLDISC
- seclists.org mailing-list, x_refsource_FULLDISC
- seclists.org mailing-list, x_refsource_FULLDISC
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- packetstormsecurity.com x_refsource_MISC
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- www.oracle.com x_refsource_MISC
- github.com x_refsource_MISC
- github.com x_refsource_MISC
- blog.getbootstrap.com x_refsource_MISC
- github.com x_refsource_MISC
- www.tenable.com x_refsource_CONFIRM
Patchminder. CVE-2018-14042: Cross-site scripting in the bootstrap package. https://patchminder.com/cve/cve-2018-14042/ (accessed 5 December 2026).