{"answers":{"affected":"28 open source packages ship an affected version, including bootstrap, org.webjars:bootstrap and Bootstrap.Less. It affects 16 products.","exploited":"There is no known exploitation of CVE-2019-8331 in the wild and no public exploit code.","fix":"Upgrade bootstrap to a fixed version for your release line: 3.4.1 or 4.3.1.","what":"CVE-2019-8331 is a medium-severity cross-site scripting vulnerability in F5 Big-Ip Access Policy Manager, published on 20 Feb 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2019-8331 and fix it if it is affected.\n\nWhat it is: CVE-2019-8331 is a medium-severity cross-site scripting vulnerability in F5 Big-Ip Access Policy Manager, published on 20 Feb 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2019-8331 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- bootstrap (NuGet): affected from 3.0.0; fixed in 3.4.1\n- bootstrap (NuGet): affected from 3.0.0; fixed in 3.4.1\n- bootstrap (NuGet): affected from 4.0.0; fixed in 4.3.1\n- bootstrap (NuGet): affected from 4.0.0; fixed in 4.3.1\n- bootstrap (RubyGems): affected all versions; fixed in 4.3.1\n- bootstrap (RubyGems): affected all versions; fixed in 4.3.1\n- bootstrap (npm): affected from 3.0.0; fixed in 3.4.1\n- bootstrap (npm): affected from 3.0.0; fixed in 3.4.1\n- bootstrap (npm): affected from 4.0.0; fixed in 4.3.1\n- bootstrap (npm): affected from 4.0.0; fixed in 4.3.1\n- org.webjars:bootstrap (Maven): affected from 3.0.0; fixed in 3.4.1\n- org.webjars:bootstrap (Maven): affected from 3.0.0; fixed in 3.4.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-8331/ (Markdown: https://insights.sbomify.com/CVE-2019-8331/index.md)","id":"CVE-2019-8331","markdown":"https://insights.sbomify.com/CVE-2019-8331/index.md","name":"CVE-2019-8331","record":{"aliases":["AZL-105101","AZL-105137","AZL-105155","AZL-105203","AZL-105266","CLSA-2026-1774743842","CLSA-2026-1782435540","DEBIAN-CVE-2019-8331","GHSA-9v3m-8fp8-mj99","RHSA-2022:8848","RHSA-2022:8865","ROOT-APP-NPM-CVE-2019-8331","UBUNTU-CVE-2019-8331"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Bootstrap frontend library","requires_auth":"none","summary":"Cross-site scripting vulnerability in Bootstrap allows attackers to execute arbitrary scripts via malicious tooltip or popover data-template attributes.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"big-ip_access_policy_manager","vendor":"f5"},{"product":"big-ip_advanced_firewall_manager","vendor":"f5"},{"product":"big-ip_analytics","vendor":"f5"},{"product":"big-ip_application_acceleration_manager","vendor":"f5"},{"product":"big-ip_application_security_manager","vendor":"f5"},{"product":"big-ip_domain_name_system","vendor":"f5"},{"product":"big-ip_edge_gateway","vendor":"f5"},{"product":"big-ip_fraud_protection_service","vendor":"f5"},{"product":"big-ip_global_traffic_manager","vendor":"f5"},{"product":"big-ip_link_controller","vendor":"f5"},{"product":"big-ip_local_traffic_manager","vendor":"f5"},{"product":"big-ip_policy_enforcement_manager","vendor":"f5"},{"product":"big-ip_webaccelerator","vendor":"f5"},{"product":"bootstrap","vendor":"getbootstrap"},{"product":"virtualization_manager","vendor":"redhat"},{"product":"tenable.sc","vendor":"tenable"}],"cvss":{"score":6.1,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["Maven","NuGet","Packagist","Red Hat:openstack:16.1::el8","Red Hat:openstack:16.2::el8","RubyGems","npm"],"exploits":{"exploitdb":0,"first_seen":"2022-05-23","github_poc":3,"max_poc_stars":4,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-07-21T08:52:37Z","kind":"github_poc","ref":"https://github.com/Yumeae/Bootstrap-with-XSS","stars":4,"title":"A poc for Bootstrap XSS(CVE-2024-6485、CVE-2016-10735、CVE-2019-8331、CVE-2018-14040)"},{"date":"2022-05-23T07:48:19Z","kind":"github_poc","ref":"https://github.com/Snorlyd/https-nj.gov---CVE-2019-8331","stars":0,"title":"Vulnearability Report of the New Jersey official site"},{"date":"2023-09-09T04:03:06Z","kind":"github_poc","ref":"https://github.com/Thampakon/CVE-2019-8331","stars":0,"title":"ช่องโหว่ CVE-2019-8331"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Bootstrap Vulnerable to Cross-Site Scripting","id":"CVE-2019-8331","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"f5:big-ip_access_policy_manager","products":["f5:big-ip_access_policy_manager","f5:big-ip_advanced_firewall_manager","f5:big-ip_analytics","f5:big-ip_application_acceleration_manager","f5:big-ip_application_security_manager","f5:big-ip_domain_name_system","f5:big-ip_edge_gateway","f5:big-ip_fraud_protection_service","f5:big-ip_global_traffic_manager","f5:big-ip_link_controller","f5:big-ip_local_traffic_manager","f5:big-ip_policy_enforcement_manager","f5:big-ip_webaccelerator"],"type":"xss","year":"2019"},"n_packages":32,"n_references":27,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2019-8334"},"packages":[{"ecosystem":"Maven","fixed":["3.4.1"],"introduced":["3.0.0"],"last_affected":[],"package":"org.webjars:bootstrap","purl":null,"source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"Maven","fixed":["3.4.1"],"introduced":["3.0.0"],"last_affected":[],"package":"org.webjars:bootstrap","purl":"pkg:maven/org.webjars/bootstrap","source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"Maven","fixed":["4.3.1"],"introduced":["4.0.0"],"last_affected":[],"package":"org.webjars:bootstrap","purl":null,"source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"Maven","fixed":["4.3.1"],"introduced":["4.0.0"],"last_affected":[],"package":"org.webjars:bootstrap","purl":"pkg:maven/org.webjars/bootstrap","source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"NuGet","fixed":["3.4.1"],"introduced":["3.0.0"],"last_affected":[],"package":"Bootstrap.Less","purl":null,"source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"NuGet","fixed":["3.4.1"],"introduced":["3.0.0"],"last_affected":[],"package":"Bootstrap.Less","purl":"pkg:nuget/Bootstrap.Less","source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"NuGet","fixed":["3.4.1"],"introduced":["3.0.0"],"last_affected":[],"package":"bootstrap","purl":null,"source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"NuGet","fixed":["3.4.1"],"introduced":["3.0.0"],"last_affected":[],"package":"bootstrap","purl":"pkg:nuget/bootstrap","source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"NuGet","fixed":["4.3.1"],"introduced":["4.0.0"],"last_affected":[],"package":"bootstrap","purl":null,"source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"NuGet","fixed":["4.3.1"],"introduced":["4.0.0"],"last_affected":[],"package":"bootstrap","purl":"pkg:nuget/bootstrap","source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"NuGet","fixed":["4.3.1"],"introduced":["0"],"last_affected":[],"package":"bootstrap.sass","purl":null,"source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"NuGet","fixed":["4.3.1"],"introduced":["0"],"last_affected":[],"package":"bootstrap.sass","purl":"pkg:nuget/bootstrap.sass","source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"Packagist","fixed":["3.4.1"],"introduced":["3.0.0"],"last_affected":[],"package":"twbs/bootstrap","purl":null,"source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"Packagist","fixed":["3.4.1"],"introduced":["3.0.0"],"last_affected":[],"package":"twbs/bootstrap","purl":"pkg:composer/twbs/bootstrap","source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"Packagist","fixed":["4.3.1"],"introduced":["4.0.0"],"last_affected":[],"package":"twbs/bootstrap","purl":null,"source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"Packagist","fixed":["4.3.1"],"introduced":["4.0.0"],"last_affected":[],"package":"twbs/bootstrap","purl":"pkg:composer/twbs/bootstrap","source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"RubyGems","fixed":["4.3.1"],"introduced":["0"],"last_affected":[],"package":"bootstrap","purl":null,"source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"RubyGems","fixed":["4.3.1"],"introduced":["0"],"last_affected":[],"package":"bootstrap","purl":"pkg:gem/bootstrap","source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"RubyGems","fixed":["3.4.1"],"introduced":["3.0.0"],"last_affected":[],"package":"bootstrap-sass","purl":null,"source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"RubyGems","fixed":["3.4.1"],"introduced":["3.0.0"],"last_affected":[],"package":"bootstrap-sass","purl":"pkg:gem/bootstrap-sass","source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"RubyGems","fixed":["5.3.0"],"introduced":["0"],"last_affected":[],"package":"twitter-bootstrap-rails","purl":null,"source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"RubyGems","fixed":["5.3.0"],"introduced":["0"],"last_affected":[],"package":"twitter-bootstrap-rails","purl":"pkg:gem/twitter-bootstrap-rails","source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"npm","fixed":["3.4.1"],"introduced":["3.0.0"],"last_affected":[],"package":"bootstrap","purl":null,"source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"npm","fixed":["3.4.1"],"introduced":["3.0.0"],"last_affected":[],"package":"bootstrap","purl":"pkg:npm/bootstrap","source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"npm","fixed":["4.3.1"],"introduced":["4.0.0"],"last_affected":[],"package":"bootstrap","purl":null,"source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"npm","fixed":["4.3.1"],"introduced":["4.0.0"],"last_affected":[],"package":"bootstrap","purl":"pkg:npm/bootstrap","source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"npm","fixed":["3.4.1"],"introduced":["3.0.0"],"last_affected":[],"package":"bootstrap-sass","purl":null,"source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"npm","fixed":["3.4.1"],"introduced":["3.0.0"],"last_affected":[],"package":"bootstrap-sass","purl":"pkg:npm/bootstrap-sass","source":"GHSA-9v3m-8fp8-mj99"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["0:3.4.1.0-2.el8ost"],"introduced":["0"],"last_affected":[],"package":"python-XStatic-Bootstrap-SCSS","purl":"pkg:rpm/redhat/python-XStatic-Bootstrap-SCSS","source":"RHSA-2022:8865"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["0:3.4.1.0-2.el8ost"],"introduced":["0"],"last_affected":[],"package":"python-XStatic-Bootstrap-SCSS","purl":"pkg:rpm/redhat/python-XStatic-Bootstrap-SCSS","source":"RHSA-2022:8848"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["0:3.4.1.0-2.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-XStatic-Bootstrap-SCSS","purl":"pkg:rpm/redhat/python3-XStatic-Bootstrap-SCSS","source":"RHSA-2022:8848"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["0:3.4.1.0-2.el8ost"],"introduced":["0"],"last_affected":[],"package":"xstatic-bootstrap-scss-common","purl":"pkg:rpm/redhat/xstatic-bootstrap-scss-common","source":"RHSA-2022:8848"}],"prev":{"headline":"RubyGems Escape sequence injection in errors","id":"CVE-2019-8325"},"products":["n/a"],"published":"2019-02-20","related":[{"cvss_score":9.8,"headline":"F5 BIG-IP Configuration Utility Authentication Bypass","id":"CVE-2023-46747","kev_date_added":"2023-10-31","published":"2023-10-26"},{"cvss_score":9.8,"headline":"F5 BIG-IP Missing Authentication","id":"CVE-2022-1388","kev_date_added":"2022-05-10","published":"2022-05-05"},{"cvss_score":9.8,"headline":"F5 BIG-IP and BIG-IQ Centralized Management iControl REST Remote Code Execution","id":"CVE-2021-22986","kev_date_added":"2021-11-03","published":"2021-03-31"},{"cvss_score":9.8,"headline":"F5 BIG-IP Traffic Management Microkernel Buffer Overflow","id":"CVE-2021-22991","kev_date_added":"2022-01-18","published":"2021-03-31"},{"cvss_score":9.8,"headline":"F5 BIG-IP Traffic Management User Interface (TMUI) Remote Code Execution","id":"CVE-2020-5902","kev_date_added":"2021-11-03","published":"2020-07-01"},{"cvss_score":9.3,"headline":"F5 BIG-IP APM Heap-based Buffer Overflow","id":"CVE-2026-94127","kev_date_added":"2026-09-22","published":"2026-09-22"},{"cvss_score":9.3,"headline":"F5 BIG-IP Stack-Based Buffer Overflow","id":"CVE-2025-53521","kev_date_added":"2026-03-27","published":"2025-10-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Cross-site scripting vulnerability in Bootstrap allows attackers to execute arbitrary scripts via malicious tooltip or popover data-template attributes.","url":"https://insights.sbomify.com/CVE-2019-8331/"}