Description
In Bootstrap 4.x before 4.1.2, XSS is possible in the data-target property of scrollspy. This is similar to CVE-2018-14042.
Recommendation
Update the bootstrap package to the latest compatible version. Followings are version details:
- Affected version(s): >= 4.0.0, < 4.1.2
- Patched version(s): 4.1.2
References
- GHSA-pj7m-g53m-7638
- access.redhat.com
- lists.apache.org
- seclists.org
- www.oracle.com
- packetstormsecurity.com
- typo3.org
- blog.getbootstrap.com
- CVE-2018-14041
- CWE-79
- CAPEC-310
- OWASP 2021-A3
- OWASP 2021-A6
Related Issues
- bootstrap Cross-site Scripting vulnerability (GHSA-ph58-4vrj-w6hr) 2 - CVE-2018-20677
- Bootstrap Cross-site Scripting vulnerability (GHSA-7mvr-5x2g-wfc8) - CVE-2018-14042
- Bootstrap Cross-site Scripting vulnerability (GHSA-7mvr-5x2g-wfc8) 2 - CVE-2018-14042
- bootstrap Cross-site Scripting vulnerability (GHSA-ph58-4vrj-w6hr) - CVE-2018-20677
- Tags:
- npm
- bootstrap
Anything's wrong? Let us know Last updated on November 19, 2025