CVE-2024-6485 XSS in Bootstrap button component

Medium 6.4 Published Updated

Attackers can execute arbitrary JavaScript via the data-loading-text attribute in Bootstrap buttons, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-6485?

CVE-2024-6485 is a medium-severity cross-site scripting vulnerability in Bootstrap, published on 11 Jul 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A security vulnerability has been discovered in bootstrap that could enable Cross-Site Scripting (XSS) attacks. The vulnerability is associated with the data-loading-text attribute within the button plugin. This vulnerability can be exploited by injecting malicious JavaScript code into the attribute, which would then be executed when the button's loading state is triggered.

Weakness: CWE-79

Which versions are affected by CVE-2024-6485?

2 open source packages ship an affected version, including bootstrap.

PackageAffectedFixed in
bootstrap npmFrom 1.4.0 to 3.4.1None
bootstrap npmFrom 1.4.0 to 3.4.1None

How do I fix CVE-2024-6485?

Upgrade to a fixed version.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-6485 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6485 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as AZL-105104, AZL-105134, AZL-105158, AZL-105206, AZL-105272, AZL-71317 and 5 more.

Is CVE-2024-6485 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free