Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-8397: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in restpack Save as PDF Button

0
Medium
VulnerabilityCVE-2025-8397cvecve-2025-8397cwe-79
Published: Thu Nov 13 2025 (11/13/2025, 08:27:46 UTC)
Source: CVE Database V5
Vendor/Project: restpack
Product: Save as PDF Button

Description

The Save as PDF Button plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's restpackpdfbutton shortcode in all versions up to, and including, 1.9.2 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

AI-Powered Analysis

AILast updated: 11/13/2025, 08:56:23 UTC

Technical Analysis

CVE-2025-8397 identifies a stored cross-site scripting (XSS) vulnerability in the 'Save as PDF Button' WordPress plugin developed by restpack. The vulnerability arises from improper neutralization of user-supplied input within the plugin's shortcode attributes, specifically in versions up to and including 1.9.2. This flaw allows authenticated users with contributor-level permissions or higher to inject arbitrary JavaScript code into pages where the shortcode is used. Because the injected scripts are stored and executed whenever any user accesses the affected page, the vulnerability can be leveraged to perform a range of malicious activities, including session hijacking, defacement, or further exploitation of the victim's browser environment. The vulnerability is classified under CWE-79, indicating improper input sanitization and output escaping during web page generation. The CVSS 3.1 base score is 6.4, reflecting a medium severity level, with an attack vector of network (remote), low attack complexity, requiring privileges (contributor or above), no user interaction, and a scope change. The impact affects confidentiality and integrity but not availability. No patches or exploits are currently publicly available, but the vulnerability is published and should be addressed proactively. The plugin is widely used in WordPress environments to enable PDF export functionality, making the vulnerability relevant to many websites that rely on this feature.

Potential Impact

For European organizations, this vulnerability poses a moderate risk primarily to websites using the affected WordPress plugin. Since contributor-level access is sufficient to exploit the flaw, insider threats or compromised contributor accounts could lead to persistent XSS attacks. The impact includes potential theft of session cookies, unauthorized actions performed on behalf of users, defacement of web content, and possible pivoting to further attacks within the organization's network. Confidentiality and integrity of user data and site content are at risk, which can damage organizational reputation and lead to compliance issues under regulations like GDPR if personal data is exposed or manipulated. The vulnerability does not directly affect availability but can indirectly disrupt services if exploited for defacement or malware delivery. Organizations with public-facing WordPress sites, especially those with multiple content contributors, are at higher risk. The absence of known exploits in the wild reduces immediate threat but does not eliminate the risk of future exploitation.

Mitigation Recommendations

1. Monitor the restpack plugin repository and official channels for security patches addressing CVE-2025-8397 and apply updates immediately upon release. 2. Until a patch is available, restrict contributor-level permissions to trusted users only and review existing contributor accounts for suspicious activity. 3. Implement web application firewall (WAF) rules to detect and block malicious payloads targeting the shortcode parameters of the Save as PDF Button plugin. 4. Employ Content Security Policy (CSP) headers to limit the execution of unauthorized scripts on affected web pages. 5. Conduct regular security audits and code reviews of custom shortcode usage to ensure no unsafe input is accepted or rendered. 6. Educate content contributors about the risks of injecting untrusted content and enforce strict input validation policies. 7. Consider disabling or removing the plugin if it is not essential to reduce the attack surface. 8. Use security plugins that can detect and sanitize stored XSS attempts within WordPress environments. 9. Monitor logs for unusual activity related to shortcode usage or script injections. 10. Backup website data regularly to enable quick restoration in case of compromise.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2025-07-30T21:17:11.981Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 691599b6f47b1f1c8b520c6a

Added to database: 11/13/2025, 8:41:26 AM

Last enriched: 11/13/2025, 8:56:23 AM

Last updated: 11/17/2025, 4:07:54 AM

Views: 23

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats