{"id":"CVE-2018-14040","published":"2018-07-13T14:00:00Z","modified":"2024-08-05T09:21:41Z","title":"In Bootstrap before 4.1.2, XSS is possible in the collapse data-parent attribute","vendor":null,"product":null,"tier":"tail","description":{"text":"In Bootstrap before 4.1.2, XSS is possible in the collapse data-parent attribute.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04071,"percentile":0.90925,"provenance":"source"},"cwes":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2018/08/msg00027.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://seclists.org/bugtraq/2019/May/18","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://seclists.org/fulldisclosure/2019/May/11","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://seclists.org/fulldisclosure/2019/May/10","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://seclists.org/fulldisclosure/2019/May/13","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"https://lists.apache.org/thread.html/52e0e6b5df827ee7f1e68f7cc3babe61af3b2160f5d74a85469b7b0e%40%3Cdev.superset.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://packetstormsecurity.com/files/152787/dotCMS-5.1.1-Vulnerable-Dependencies.html","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/156743/OctoberCMS-Insecure-Dependencies.html","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/r3dc0cac8d856bca02bd6997355d7ff83027dcfc82f8646a29b89b714%40%3Cissues.hbase.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rd0e44e8ef71eeaaa3cf3d1b8b41eb25894372e2995ec908ce7624d26%40%3Ccommits.pulsar.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.oracle.com/security-alerts/cpuApr2021.html","tags":["x_refsource_MISC"]},{"url":"https://github.com/twbs/bootstrap/pull/26630","tags":["x_refsource_MISC"]},{"url":"https://github.com/twbs/bootstrap/issues/26423","tags":["x_refsource_MISC"]},{"url":"https://github.com/twbs/bootstrap/issues/26625","tags":["x_refsource_MISC"]},{"url":"https://blog.getbootstrap.com/2018/07/12/bootstrap-4-1-2/","tags":["x_refsource_MISC"]},{"url":"https://www.tenable.com/security/tns-2021-14","tags":["x_refsource_CONFIRM"]}],"priority":{"score":23.2,"factors":[{"name":"EPSS percentile","points":18.18},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2022-05-23","earliestUrl":"https://github.com/Snorlyd/https-nj.gov---CVE-2018-14040","repos":[{"name":"Yumeae/Bootstrap-with-XSS","url":"https://github.com/Yumeae/Bootstrap-with-XSS","stars":4,"created":"2025-07-21"},{"name":"Snorlyd/https-nj.gov---CVE-2018-14040","url":"https://github.com/Snorlyd/https-nj.gov---CVE-2018-14040","stars":1,"created":"2022-05-23"}]},"first":{"date":"2022-05-23","source":"PoC-in-GitHub","url":"https://github.com/Snorlyd/https-nj.gov---CVE-2018-14040"},"provenance":"source"},"affected":[{"ecosystem":"npm","package":"bootstrap","vulnerableRanges":[">=4.0.0, <4.1.2",">=2.3.0, <3.4.0"],"patched":["4.1.2","3.4.0"],"from":["GHSA-3wqf-4x89-9g79"],"provenance":"source"},{"ecosystem":"RubyGems","package":"bootstrap","vulnerableRanges":[">=4.0.0, <4.1.2",">=2.3.0, <3.4.0"],"patched":["4.1.2","3.4.0"],"from":["GHSA-3wqf-4x89-9g79"],"provenance":"source"},{"ecosystem":"Maven","package":"org.webjars:bootstrap","vulnerableRanges":[">=4.0.0, <4.1.2",">=2.3.0, <3.4.0"],"patched":["4.1.2","3.4.0"],"from":["GHSA-3wqf-4x89-9g79"],"provenance":"source"},{"ecosystem":"NuGet","package":"bootstrap","vulnerableRanges":[">=2.3.0, <3.4.0",">=4.0.0, <4.1.2"],"patched":["3.4.0","4.1.2"],"from":["GHSA-3wqf-4x89-9g79"],"provenance":"source"},{"ecosystem":"NuGet","package":"bootstrap.sass","vulnerableRanges":[">=4.0.0, <4.1.2"],"patched":["4.1.2"],"from":["GHSA-3wqf-4x89-9g79"],"provenance":"source"},{"ecosystem":"RubyGems","package":"bootstrap-sass","vulnerableRanges":[">=2.3.0, <3.4.0"],"patched":["3.4.0"],"from":["GHSA-3wqf-4x89-9g79"],"provenance":"source"},{"ecosystem":"Packagist","package":"twbs/bootstrap","vulnerableRanges":[">=2.3.0, <3.4.0",">=4.0.0, <4.1.2"],"patched":["3.4.0","4.1.2"],"from":["GHSA-3wqf-4x89-9g79"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting (XSS) weakness in the collapse component of Bootstrap, specifically in its data-parent attribute handling, affecting versions before 4.1.2.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:11:05Z"},"euvd":{"id":"EUVD-2022-2255","exploited":false,"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/152787/dotCMS-5.1.1-Vulnerable-Dependencies.html","http://packetstormsecurity.com/files/156743/OctoberCMS-Insecure-Dependencies.html"]}