---
id: CVE-2025-8397
title: >-
  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 …
summary: >-
  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 …
severity: medium
cvss: 6.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
published: '2025-11-13'
updated: '2026-09-30'
sourceUpdated: '2026-09-30T23:10:00.237'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-8397'
references:
  - url: 'https://plugins.svn.wordpress.org/save-as-pdf/trunk/save-as-pdf.php'
    label: security@wordfence.com
  - url: 'https://wordpress.org/plugins/save-as-pdf/#developers'
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/2c648fca-c36f-41a0-9d29-3f669f3669d9?source=cve
    label: security@wordfence.com
tags:
  - nvd
epss: 0.00228
epssPercentile: 0.12275
ingestedAt: '2026-09-30T23:29:32.468Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
