Add Custom Codes <= 4.80 - Authenticated (Contributor+) Remote Code Execution

8.8
Improper Control of Generation of Code ('Code Injection')
CVE CVE-2025-30975
CVSS 8.8 (High)
Publicly Published August 14, 2025
Last Updated March 17, 2026
Researcher Ryan Novotny

Description

The Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 4.80. This makes it possible for authenticated attackers, with Contributor-level access and above, to execute code on the server.

References

Share

Vulnerability Details for Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript

Software Type Plugin
Software Slug add-custom-codes (view on wordpress.org)
Patched? Yes
Remediation Update to version 5.0, or a newer patched version
Affected Version
  • <= 4.80
Patched Version
  • 5.0

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation