Document Embedder – let visitors read files without downloading <= 2.4.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Document Embed Block 'doc' Attribute

Medium 6.4 CWE-79Fixed in 2.4.1
ID
WPSEC-2026-1210
Plugin
Document Embedder – let visitors read files without downloading (document-emberdder)
Affected
all versions before 2.4.1
Remediation
Update to 2.4.1 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-10-18
Attack surface
Document Embedder – let visitors read files without downloading on WPSec AttackSurface
Fix released
Published

Description

The Document Embedder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Document Embed block's 'doc' attribute in all versions up to, and including, 2.4.0 due to insufficient validation of the URL scheme before the value is used as a link href, iframe/image source, or window location by the front-end viewer. This makes it possible for authenticated attackers, with contributor-level access and above, to store 'javascript:' URLs in block attributes. The injected scripts execute when a user views the page or clicks the document's download button.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON or Markdown · All advisories: JSON, RSS

License: CC BY 4.0