CVE-2025-8266 yanyutao0402 ChanCMS collect.js getArticle deserialization

Medium 5.3 Published Updated

Remote attackers can achieve code execution via unsafe deserialization in the getArticle function of ChanCMS.

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-2025-8266?

CVE-2025-8266 is a medium-severity unsafe deserialization vulnerability in yanyutao0402 ChanCMS, published on 28 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability has been found in yanyutao0402 ChanCMS up to 3.1.2 and classified as critical. Affected by this vulnerability is the function getArticle of the file app/modules/cms/controller/collect.js. The manipulation of the argument targetUrl leads to deserialization. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 3.1.3 is able to address this issue. It is recommended to upgrade the affected component.

Weakness: CWE-502, CWE-20

Which versions are affected by CVE-2025-8266?

It affects 1 product.

Products include Chancms Chancms.

How do I fix CVE-2025-8266?

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

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2025-8266 being exploited?

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

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-pg2f-hfwm-m7g5.

Is CVE-2025-8266 in your software?

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

Check your SBOMs for free