CVE-2025-54940 Cross-site scripting in Advanced Custom Fields

Medium 4.6 Published Updated

Attackers can inject HTML to tamper with page display in the Advanced Custom Fields WordPress plugin.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-54940?

CVE-2025-54940 is a medium-severity cross-site scripting vulnerability in WPEngine, Inc. Advanced Custom Fields, published on 8 Aug 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

An HTML injection vulnerability exists in WordPress plugin "Advanced Custom Fields" prior to 6.4.3. If this vulnerability is exploited, crafted HTML code may be rendered and page display may be tampered.

Weakness: CWE-94

Which versions are affected by CVE-2025-54940?

How do I fix CVE-2025-54940?

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

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-54940 being exploited?

There is no known exploitation of CVE-2025-54940 in the wild and no public exploit code.

Sources

Also known as GHSA-ww7q-fq8q-pm4x.

Is CVE-2025-54940 in your software?

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

Check your SBOMs for free