CVE-2022-40849 ThinkCMF Stored Cross-Site Scripting (XSS)

Medium 5.4 Published Updated

Attackers can inject persistent JavaScript in ThinkCMF Slideshow Management to steal administrator session tokens and take over accounts.

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

What is CVE-2022-40849?

CVE-2022-40849 is a medium-severity cross-site scripting vulnerability in n/a, published on 1 Dec 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

ThinkCMF version 6.0.7 is affected by Stored Cross-Site Scripting (XSS). An attacker who successfully exploited this vulnerability could inject a Persistent XSS payload in the Slideshow Management section that execute arbitrary JavaScript code on the client side, e.g., to steal the administrator's PHP session token (PHPSESSID).

Weakness: CWE-79

Which versions are affected by CVE-2022-40849?

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

PackageAffectedFixed in
thinkcmf/thinkcmf PackagistAll versions6.0.8
thinkcmf/thinkcmf PackagistAll versions6.0.8

Products include Thinkcmf Thinkcmf.

How do I fix CVE-2022-40849?

Upgrade thinkcmf/thinkcmf to 6.0.8 or later.

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-2022-40849 being exploited?

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

Sources

Also known as GHSA-m9mf-rqx6-2xpc.

Is CVE-2022-40849 in your software?

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

Check your SBOMs for free