CVE-2024-29504 Summernote vulnerable to cross-site scripting

High 7.6 Published Updated

A remote attacker can execute arbitrary code via a crafted payload in the codeview parameter of the Summernote rich text editor library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-29504?

CVE-2024-29504 is a high-severity cross-site scripting vulnerability in n/a, published on 10 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Cross Site Scripting vulnerability in Summernote v.0.8.18 and before allows a remote attacker to execute arbtirary code via a crafted payload to the codeview parameter.

Weakness: CWE-79

Which versions are affected by CVE-2024-29504?

2 open source packages ship an affected version, including summernote. It affects 1 product.

PackageAffectedFixed in
summernote npmAll versions to 0.8.18None
summernote npmAll versions to 0.8.18None

Products include Summernote Summernote.

How do I fix CVE-2024-29504?

No fix has been published for CVE-2024-29504 yet. Limit exposure of the affected software until one is available.

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-29504 being exploited?

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

Sources

Also known as GHSA-4wh3-3wf2-39m9.

Is CVE-2024-29504 in your software?

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

Check your SBOMs for free