Eval Injection Affecting wp-coding-standards/wpcs package, versions >=0.14.1, <3.4.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (9th 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 Learn

Learn about Eval Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-WPCODINGSTANDARDSWPCS-18506896
  • published2 Aug 2026
  • disclosed28 Jul 2026
  • creditUnknown

Introduced: 28 Jul 2026

NewCVE-2026-45293  (opens in a new tab)
CWE-95  (opens in a new tab)

How to fix?

Upgrade wp-coding-standards/wpcs to version 3.4.1 or higher.

Overview

Affected versions of this package are vulnerable to Eval Injection in the is_falsy function of the WordPress.WP.EnqueuedResourceParameters process. An attacker can execute arbitrary commands on the scanning host by submitting maliciously crafted arguments that are evaluated during code analysis. This is only exploitable if the WordPress or WordPress-Extra rulesets are used to scan untrusted PHP code, such as in CI pipelines or when reviewing third-party code.

Workaround

This vulnerability can be mitigated by disabling the affected sniff via an tag in the custom ruleset configuration.

CVSS Base Scores

version 4.0
version 3.1