Uncontrolled Search Path Element Affecting psy/psysh package, versions <0.11.23>=0.12.0, <0.12.19


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.01% (1st 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-PSYPSYSH-15166606
  • published1 Feb 2026
  • disclosed30 Jan 2026
  • creditAqhmal Hafizi

Introduced: 30 Jan 2026

CVE-2026-25129  (opens in a new tab)
CWE-427  (opens in a new tab)

How to fix?

Upgrade psy/psysh to version 0.11.23, 0.12.19 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Search Path Element via the automatic loading and execution of .psysh.php from the current working directory during startup. An attacker can execute arbitrary code with the privileges of the victim process by placing a malicious .psysh.php file in a directory writable by the attacker, which is later used as the current working directory by a user launching the application.

CVSS Base Scores

version 4.0
version 3.1