Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts <= 2.7.1 - Authenticated (Contributor+) Remote Code Execution

8.8
Improper Control of Generation of Code ('Code Injection')
CVE CVE-2026-25366
CVSS 8.8 (High)
Publicly Published March 23, 2026
Last Updated May 5, 2026
Researcher Nguyen Ba Khanh

Description

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

References

Share

Vulnerability Details for Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts

Software Type Plugin
Software Slug insert-php (view on wordpress.org)
Patched? Yes
Remediation Update to version 2.7.2, or a newer patched version
Affected Version
  • <= 2.7.1
Patched Version
  • 2.7.2

Recent vulnerabilities in Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts

# Title CVE ID CVSS Researchers Date
1 Woody code snippets – Insert Header Footer Code, AdSense Ads <= 2.5.0 -Authenticated (Contributor+) Remote Code Execution CVE-2024-3105 9.9 Webbernaut June 14, 2024
2 Woody code snippets – Insert Header Footer Code, AdSense Ads <= 2.5.0 - Authenticated (Admin+) Stored Cross-Site Scripting CVE-2024-35751 4.4 SavPhill (Savphill) June 6, 2024
3 Woody code snippets <= 2.4.5 - Reflected Cross-Site Scripting 6.1 WPScanTeam June 2, 2022
4 Woody code snippets <= 2.3.9 - Cross-Site Request Forgery Bypass CVE-2020-36759 4.3 Jerome Bruandet September 16, 2020
5 Woody Ad Snippets <= 2.2.8 - Authenticated Cross-Site Scripting CVE-2019-16289 6.4 GeneralEG September 13, 2019
6 Woody Ad Snippets <= 2.2.5 - Arbitrary Post Deletion CVE-2019-14773 7.5 August 9, 2019
7 Woody Ad Snippets <= 2.2.4 - Missing Authorization to Settings Import CVE-2019-15858 8.8 Jerome Bruandet August 2, 2019

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