# Document Embedder <= 2.5.0 - Reflected Cross-Site Scripting via 'pdf-source' Parameter

- **ID:** WPSEC-2026-2755
- **Plugin:** Document Embedder – let visitors read files without downloading (`document-emberdder`), https://wordpress.org/plugins/document-emberdder/
- **Affected versions:** from 2.2.1 before 2.5.1
- **Fixed in:** 2.5.1 (Update to 2.5.1 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-09)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/document-emberdder
- **Fix released:** 2026-11-08
- **Published:** 2026-11-09
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2755/

## Description

The Document Embedder plugin for WordPress is vulnerable to DOM-based Reflected Cross-Site Scripting via the 'pdf-source' URL parameter in the Flipbook and Slider viewer in all versions up to, and including, 2.5.0. This is due to insufficient validation of the document source URL, which is passed unvalidated into the viewer, the print iframe and the download link (allowing javascript: URLs), and to the file name and error message being inserted into the load-error message without escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts into pages that execute if they can successfully trick a user into performing an action such as clicking on a crafted link.

## References

- https://wpsec.com/vuln/WPSEC-2026-2755/
- https://plugins.svn.wordpress.org/document-emberdder/tags/2.5.1/
- https://wordpress.org/plugins/document-emberdder/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-2755/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
