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

Machine-generated threat intelligence

AILast updated: 02/26/2026, 17:05:08 UTC

Technical Analysis

CVE-2025-8397 is a stored cross-site scripting vulnerability classified under CWE-79, found in the 'Save as PDF Button' WordPress plugin developed by restpack. This vulnerability exists in all versions up to and including 1.9.2 due to insufficient sanitization and escaping of user-supplied attributes within the plugin's restpackpdfbutton shortcode. Authenticated attackers with contributor-level access or higher can exploit this flaw by injecting arbitrary JavaScript code into pages using the shortcode. Because the malicious script is stored persistently, it executes in the context of any user who views the infected page, potentially compromising user sessions, stealing cookies, or performing unauthorized actions on behalf of the victim. The vulnerability requires authentication but no user interaction to trigger the payload once the page is accessed. The CVSS 3.1 base score is 6.4, reflecting network attack vector, low attack complexity, privileges required, no user interaction, and partial confidentiality and integrity impact. No patches or known exploits have been reported at the time of publication. The vulnerability highlights the risks of insufficient input validation in WordPress plugins, especially those that allow user-generated content or shortcode attributes. Organizations using this plugin should be aware of the risk posed by contributor-level users and the potential for persistent XSS attacks that can affect site visitors and administrators alike.

Potential Impact

The impact of CVE-2025-8397 is significant for organizations running WordPress sites with the vulnerable 'Save as PDF Button' plugin installed. Successful exploitation allows authenticated contributors or higher to inject persistent malicious scripts, which execute in the browsers of any users visiting the compromised pages. This can lead to session hijacking, theft of sensitive information such as cookies or credentials, unauthorized actions performed with the victim's privileges, and potential defacement or redirection attacks. Since contributors typically have permissions to create or edit content, the attack surface is broad in multi-user environments. The vulnerability undermines the confidentiality and integrity of user data and site content but does not directly affect availability. The scope includes any WordPress site using the plugin, which may be widespread given WordPress's market share. The lack of known exploits suggests limited active attacks currently, but the ease of exploitation and medium severity score indicate a moderate risk that could escalate if weaponized. Organizations with contributor-level users should consider this a priority vulnerability to address to prevent compromise and reputational damage.

Mitigation Recommendations

To mitigate CVE-2025-8397 effectively, organizations should take the following specific actions: 1) Immediately update the 'Save as PDF Button' plugin to a patched version once available; monitor vendor announcements for patches. 2) In the interim, restrict contributor-level user permissions to prevent shortcode insertion or editing of pages containing the vulnerable shortcode. 3) Implement a Web Application Firewall (WAF) with rules to detect and block suspicious shortcode attribute patterns or script injections related to this plugin. 4) Conduct a thorough audit of existing pages and posts for injected malicious scripts or suspicious shortcode usage and remove any found. 5) Educate content contributors about the risks of injecting untrusted content and enforce strict content review workflows. 6) Employ security plugins that sanitize shortcode inputs or escape outputs to reduce risk. 7) Monitor logs and user activity for unusual behavior indicative of exploitation attempts. 8) Consider disabling or replacing the plugin with alternatives that follow secure coding practices if patching is delayed. These targeted measures go beyond generic advice by focusing on the specific plugin, user roles, and content management workflows involved.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to 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: 2/26/2026, 5:05:08 PM

Last updated: 3/23/2026, 6:19:51 AM

Views: 98

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 more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses