Description
Deserialization of Untrusted Data vulnerability in Scott Reilly Preserve Code Formatting preserve-code-formatting allows Object Injection.This issue affects Preserve Code Formatting: from n/a through <= 4.0.1.
Published: 2025-11-06
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Preserve Code Formatting plugin contains a flaw where untrusted data is deserialized without proper validation, enabling PHP Object Injection. This leads to the possibility of arbitrary code execution or manipulation of the plugin’s internal state. Since the vulnerability lies in the core data handling routine, compromised data can affect the confidentiality, integrity, and availability of the WordPress site.

Affected Systems

Scott Reilly’s Preserve Code Formatting plugin for WordPress, versions from the original release through 4.0.1 inclusive, is impacted. Any WordPress installation using these plugin versions is at risk, and the flaw has not been reported in the CISA KEV catalog.

Risk and Exploitability

The CVSS score of 8.8 marks this vulnerability as high severity. The EPSS score of less than 1% indicates a low current probability of exploitation, and the lack of an KEV listing suggests no publicly recorded exploitation yet. The attack vector is most likely web-based, with an attacker sending a malicious serialized payload via the plugin’s input mechanisms such as a form or API endpoint.

Generated by OpenCVE AI on April 30, 2026 at 05:18 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Preserve Code Formatting to version 4.0.2 or later.
  • If an upgrade cannot be performed immediately, deactivate or uninstall the plugin to stop processing untrusted serialized data.
  • As a temporary safeguard, restrict access to the plugin’s data input endpoints to trusted administrators and validate any incoming data against a strict whitelist.

Generated by OpenCVE AI on April 30, 2026 at 05:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 27 Apr 2026 20:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 23 Apr 2026 15:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Tue, 20 Jan 2026 15:30:00 +0000


Tue, 20 Jan 2026 14:45:00 +0000


Thu, 13 Nov 2025 11:30:00 +0000


Thu, 13 Nov 2025 10:45:00 +0000


Mon, 10 Nov 2025 20:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 07 Nov 2025 11:00:00 +0000

Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Vendors & Products Wordpress
Wordpress wordpress

Thu, 06 Nov 2025 16:00:00 +0000

Type Values Removed Values Added
Description Deserialization of Untrusted Data vulnerability in Scott Reilly Preserve Code Formatting preserve-code-formatting allows Object Injection.This issue affects Preserve Code Formatting: from n/a through <= 4.0.1.
Title WordPress Preserve Code Formatting Plugin <= 4.0.1 - PHP Object Injection Vulnerability
Weaknesses CWE-502
References

Subscriptions

Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Patchstack

Published:

Updated: 2026-04-28T16:13:02.847Z

Reserved: 2025-06-04T15:43:46.346Z

Link: CVE-2025-49386

cve-icon Vulnrichment

Updated: 2025-11-10T19:36:04.743Z

cve-icon NVD

Status : Deferred

Published: 2025-11-06T16:15:53.103

Modified: 2026-04-27T20:16:14.823

Link: CVE-2025-49386

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-30T05:30:06Z

Weaknesses