CVE-2025-31131 Path Traversal allowing arbitrary read of files in Yeswiki

High 8.6 Published Updated

Attackers can read arbitrary files on the server via path traversal in the squelette parameter of YesWiki.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-31131?

CVE-2025-31131 is a high-severity path traversal vulnerability in yeswiki, published on 1 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

YesWiki is a wiki system written in PHP. The squelette parameter is vulnerable to path traversal attacks, enabling read access to arbitrary files on the server. This vulnerability is fixed in 4.5.2.

Weakness: CWE-22

Which versions are affected by CVE-2025-31131?

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

PackageAffectedFixed in
yeswiki/yeswiki PackagistAll versions4.5.2
yeswiki/yeswiki PackagistAll versions4.5.2

Products include Yeswiki Yeswiki.

How do I fix CVE-2025-31131?

Upgrade yeswiki/yeswiki to 4.5.2 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-31131 being exploited?

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

Public exploit code: 1 Exploit-DB entry, 1 Nuclei template and 2 proofs of concept on GitHub.

Sources

Also known as GHSA-w34w-fvp3-68xm.

Is CVE-2025-31131 in your software?

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

Check your SBOMs for free