Improper Encoding or Escaping of Output Affecting yeswiki/yeswiki package, versions <4.5.4


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.54% (67th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-YESWIKIYESWIKI-10245156
  • published25 May 2025
  • disclosed29 Apr 2025
  • creditpizza-power

Introduced: 29 Apr 2025

CVE-2025-46347  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade yeswiki/yeswiki to version 4.5.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output through the addCustomCSSPreset method in the ApiController.php file. An attacker can execute arbitrary code on the server by modifying the file extension to .php and injecting PHP code into the file content parameters during a POST request.

Note: This is only exploitable if the server configuration allows PHP execution in user-writable directories.

CVSS Base Scores

version 4.0
version 3.1