CVE-2024-12446: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in gravitymaster97 Post to Pdf
CVE-2024-12446 is a stored Cross-Site Scripting (XSS) vulnerability in the WordPress plugin 'Post to Pdf' by gravitymaster97, affecting all versions up to 1. 0. The flaw exists due to improper sanitization and escaping of user-supplied attributes in the 'gmptp_single_post' shortcode. Authenticated users with contributor-level access or higher can inject malicious scripts that execute when other users view the affected pages. This vulnerability can lead to partial confidentiality and integrity compromise without requiring user interaction. The CVSS score is 6. 4 (medium severity), reflecting network exploitability with low attack complexity but requiring privileges. No known exploits are currently reported in the wild. Organizations using this plugin should prioritize patching or mitigating this issue to prevent potential account takeover or session hijacking attacks.
AI Analysis
Technical Summary
CVE-2024-12446 identifies a stored Cross-Site Scripting vulnerability in the 'Post to Pdf' WordPress plugin developed by gravitymaster97. The vulnerability arises from insufficient input sanitization and output escaping in the 'gmptp_single_post' shortcode, which processes user-supplied attributes. Because these inputs are not properly neutralized, authenticated users with contributor-level permissions or higher can inject arbitrary JavaScript code into pages generated by the plugin. When other users access these pages, the malicious scripts execute in their browsers, potentially allowing attackers to steal session cookies, perform actions on behalf of victims, or deface content. The vulnerability affects all versions up to and including 1.0 of the plugin. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N) indicates that the attack can be launched remotely over the network with low complexity, requires privileges (authenticated contributor or above), does not require user interaction, and impacts confidentiality and integrity with a scope change. No patches or fixes are currently linked, and no known exploits have been reported in the wild. This vulnerability is classified under CWE-79, which is a common and critical web application security weakness related to improper neutralization of input during web page generation.
Potential Impact
The primary impact of this vulnerability is the potential for attackers with contributor-level access to inject persistent malicious scripts into WordPress pages, which execute in the browsers of users who view those pages. This can lead to theft of authentication cookies, enabling session hijacking and unauthorized access escalation. Attackers could also manipulate page content or perform actions on behalf of other users, undermining data integrity. Although availability is not directly affected, the compromise of user accounts and site integrity can cause significant reputational damage and operational disruption. Organizations relying on the 'Post to Pdf' plugin risk exposure to targeted attacks, especially if contributor accounts are compromised or misused. The medium CVSS score reflects a moderate but significant risk, particularly in environments with multiple contributors or where sensitive data is handled via WordPress. The scope change indicates that the vulnerability can affect components beyond the initially compromised user context, increasing the risk profile.
Mitigation Recommendations
Since no official patches are currently linked, organizations should immediately restrict contributor-level access to trusted users only and audit existing contributor accounts for suspicious activity. Disable or remove the 'Post to Pdf' plugin if it is not essential to reduce attack surface. Implement Web Application Firewall (WAF) rules to detect and block malicious payloads targeting the 'gmptp_single_post' shortcode parameters. Employ Content Security Policy (CSP) headers to limit the execution of unauthorized scripts. Monitor logs for unusual POST requests or shortcode usage patterns indicative of exploitation attempts. Educate content contributors about the risks of injecting untrusted content. Once a patch or update is released by the vendor, apply it promptly. Additionally, consider scanning the site for injected scripts and cleaning any compromised pages to prevent persistent exploitation.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, France, India, Brazil, Japan, Netherlands
CVE-2024-12446: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in gravitymaster97 Post to Pdf
Description
CVE-2024-12446 is a stored Cross-Site Scripting (XSS) vulnerability in the WordPress plugin 'Post to Pdf' by gravitymaster97, affecting all versions up to 1. 0. The flaw exists due to improper sanitization and escaping of user-supplied attributes in the 'gmptp_single_post' shortcode. Authenticated users with contributor-level access or higher can inject malicious scripts that execute when other users view the affected pages. This vulnerability can lead to partial confidentiality and integrity compromise without requiring user interaction. The CVSS score is 6. 4 (medium severity), reflecting network exploitability with low attack complexity but requiring privileges. No known exploits are currently reported in the wild. Organizations using this plugin should prioritize patching or mitigating this issue to prevent potential account takeover or session hijacking attacks.
AI-Powered Analysis
Technical Analysis
CVE-2024-12446 identifies a stored Cross-Site Scripting vulnerability in the 'Post to Pdf' WordPress plugin developed by gravitymaster97. The vulnerability arises from insufficient input sanitization and output escaping in the 'gmptp_single_post' shortcode, which processes user-supplied attributes. Because these inputs are not properly neutralized, authenticated users with contributor-level permissions or higher can inject arbitrary JavaScript code into pages generated by the plugin. When other users access these pages, the malicious scripts execute in their browsers, potentially allowing attackers to steal session cookies, perform actions on behalf of victims, or deface content. The vulnerability affects all versions up to and including 1.0 of the plugin. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N) indicates that the attack can be launched remotely over the network with low complexity, requires privileges (authenticated contributor or above), does not require user interaction, and impacts confidentiality and integrity with a scope change. No patches or fixes are currently linked, and no known exploits have been reported in the wild. This vulnerability is classified under CWE-79, which is a common and critical web application security weakness related to improper neutralization of input during web page generation.
Potential Impact
The primary impact of this vulnerability is the potential for attackers with contributor-level access to inject persistent malicious scripts into WordPress pages, which execute in the browsers of users who view those pages. This can lead to theft of authentication cookies, enabling session hijacking and unauthorized access escalation. Attackers could also manipulate page content or perform actions on behalf of other users, undermining data integrity. Although availability is not directly affected, the compromise of user accounts and site integrity can cause significant reputational damage and operational disruption. Organizations relying on the 'Post to Pdf' plugin risk exposure to targeted attacks, especially if contributor accounts are compromised or misused. The medium CVSS score reflects a moderate but significant risk, particularly in environments with multiple contributors or where sensitive data is handled via WordPress. The scope change indicates that the vulnerability can affect components beyond the initially compromised user context, increasing the risk profile.
Mitigation Recommendations
Since no official patches are currently linked, organizations should immediately restrict contributor-level access to trusted users only and audit existing contributor accounts for suspicious activity. Disable or remove the 'Post to Pdf' plugin if it is not essential to reduce attack surface. Implement Web Application Firewall (WAF) rules to detect and block malicious payloads targeting the 'gmptp_single_post' shortcode parameters. Employ Content Security Policy (CSP) headers to limit the execution of unauthorized scripts. Monitor logs for unusual POST requests or shortcode usage patterns indicative of exploitation attempts. Educate content contributors about the risks of injecting untrusted content. Once a patch or update is released by the vendor, apply it promptly. Additionally, consider scanning the site for injected scripts and cleaning any compromised pages to prevent persistent exploitation.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Wordfence
- Date Reserved
- 2024-12-10T19:10:26.710Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 699f6e3bb7ef31ef0b598a7f
Added to database: 2/25/2026, 9:48:43 PM
Last enriched: 2/26/2026, 4:43:31 AM
Last updated: 2/26/2026, 10:52:32 AM
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2025-64999: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Checkmk GmbH Checkmk
HighCVE-2026-28138: Deserialization of Untrusted Data in Stylemix uListing
HighCVE-2026-28136: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in VeronaLabs WP SMS
HighCVE-2026-28132: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in villatheme WooCommerce Photo Reviews
HighCVE-2026-28131: Insertion of Sensitive Information Into Sent Data in WPVibes Elementor Addon Elements
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.