CVE-2018-14041
Bootstrap Cross-site Scripting vulnerability
Also known as GHSA-pj7m-g53m-7638
Mitigation
- Upgrade bootstrap to 4.1.2 or later.
- Upgrade typo3/cms-core to one of 8.7.23, 9.5.4 (or later in the same release line).
- Upgrade typo3/cms to one of 8.7.23, 9.5.4 (or later in the same release line).
- Upgrade twbs/bootstrap to 4.1.2 or later.
- Upgrade bootstrap.sass to 4.1.2 or later.
- Upgrade org.webjars:bootstrap to 4.1.2 or later.
Who should check
- Projects that depend on npm package bootstrap (>= 4.0.0, < 4.1.2)
- Projects that depend on Packagist package typo3/cms-core (>= 8.0.0, < 8.7.23)
- Projects that depend on Packagist package typo3/cms (>= 8.0.0, < 8.7.23)
- Projects that depend on RubyGems package bootstrap (>= 4.0.0, < 4.1.2)
- Projects that depend on Packagist package twbs/bootstrap (>= 4.0.0, < 4.1.2)
- Projects that depend on NuGet package bootstrap (>= 4.0.0, < 4.1.2)
- Projects that depend on NuGet package bootstrap.sass (>= 4.0.0, < 4.1.2)
- Projects that depend on Maven package org.webjars:bootstrap (>= 4.0.0, < 4.1.2)
Vulnerability facts
- Affected
- bootstrap >= 4.0.0, < 4.1.2; typo3/cms-core >= 8.0.0, < 8.7.23; typo3/cms >= 8.0.0, < 8.7.23; bootstrap >= 4.0.0, < 4.1.2; twbs/bootstrap >= 4.0.0, < 4.1.2; bootstrap >= 4.0.0, < 4.1.2; bootstrap.sass >= 4.0.0, < 4.1.2; org.webjars:bootstrap >= 4.0.0, < 4.1.2
- Fixed in
- 4.1.2, 8.7.23, 9.5.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.1 (v3.0, NVD)CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- EPSS
- 4.25% chance of exploitation in 30 days (percentile 92, 2026-11-26)
- CWE
- CWE-79
- Modified
Description
In Bootstrap before 4.1.2, XSS is possible in the data-target property of scrollspy.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm bootstrap | >= 4.0.0, < 4.1.2 | 4.1.2 | osv |
| Packagist typo3/cms-core | >= 8.0.0, < 8.7.23 | 8.7.23, 9.5.4 | osv |
| Packagist typo3/cms | >= 8.0.0, < 8.7.23 | 8.7.23, 9.5.4 | osv |
| RubyGems bootstrap | >= 4.0.0, < 4.1.2 | 4.1.2 | osv |
| Packagist twbs/bootstrap | >= 4.0.0, < 4.1.2 | 4.1.2 | osv |
| NuGet bootstrap | >= 4.0.0, < 4.1.2 | 4.1.2 | osv |
| NuGet bootstrap.sass | >= 4.0.0, < 4.1.2 | 4.1.2 | osv |
| Maven org.webjars:bootstrap | >= 4.0.0, < 4.1.2 | 4.1.2 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2018-14041. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2018-14041.md Affected: bootstrap >= 4.0.0, < 4.1.2; typo3/cms-core >= 8.0.0, < 8.7.23; typo3/cms >= 8.0.0, < 8.7.23; bootstrap >= 4.0.0, < 4.1.2; twbs/bootstrap >= 4.0.0, < 4.1.2; bootstrap >= 4.0.0, < 4.1.2; bootstrap.sass >= 4.0.0, < 4.1.2; org.webjars:bootstrap >= 4.0.0, < 4.1.2 Fixed in: 4.1.2, 8.7.23, 9.5.4 Steps: 1. Search this machine and project for bootstrap (npm), typo3/cms-core (Packagist), typo3/cms (Packagist), bootstrap (RubyGems), twbs/bootstrap (Packagist), bootstrap (NuGet): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Exploits and PoCs
Other
- 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://lists.apache.org/thread.html/52e0e6b5df827ee7f1e68f7cc3babe61af3b2160f5d74a85469b7b0e%40%3Cdev.superset.apache.org%3E
- 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
- https://lists.apache.org/thread.html/r3dc0cac8d856bca02bd6997355d7ff83027dcfc82f8646a29b89b714%40%3Cissues.hbase.apache.org%3E
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://github.com/twbs/bootstrap/issues/26423
- https://typo3.org/security/advisory/typo3-core-sa-2019-006
- https://lists.apache.org/thread.html/r3dc0cac8d856bca02bd6997355d7ff83027dcfc82f8646a29b89b714@%3Cissues.hbase.apache.org%3E
- https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E
- https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E
- https://lists.apache.org/thread.html/52e0e6b5df827ee7f1e68f7cc3babe61af3b2160f5d74a85469b7b0e@%3Cdev.superset.apache.org%3E
- https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E
- https://github.com/twbs/bootstrap
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap/CVE-2018-14041.yml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms/CVE-2018-14041.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms-core/CVE-2018-14041.yaml
- https://blog.getbootstrap.com/2018/07/12/bootstrap-4-1-2
FAQ
Is CVE-2018-14041 being exploited?
There is no confirmed exploitation: CVE-2018-14041 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 4.25% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2018-14041?
Medium: CVSS 6.1 (v3.0, scored by NVD). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2018-14041?
bootstrap >= 4.0.0, < 4.1.2; typo3/cms-core >= 8.0.0, < 8.7.23; typo3/cms >= 8.0.0, < 8.7.23; bootstrap >= 4.0.0, < 4.1.2; twbs/bootstrap >= 4.0.0, < 4.1.2; bootstrap >= 4.0.0, < 4.1.2; bootstrap.sass >= 4.0.0, < 4.1.2; org.webjars:bootstrap >= 4.0.0, < 4.1.2.
Is there a fix for CVE-2018-14041?
Yes. Fixed in 4.1.2, 8.7.23, 9.5.4. Upgrade bootstrap to 4.1.2 or later. Upgrade typo3/cms-core to one of 8.7.23, 9.5.4 (or later in the same release line). Upgrade typo3/cms to one of 8.7.23, 9.5.4 (or later in the same release line). Upgrade twbs/bootstrap to 4.1.2 or later. Upgrade bootstrap.sass to 4.1.2 or later. Upgrade org.webjars:bootstrap to 4.1.2 or later.
How do I check if I'm affected by CVE-2018-14041?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.