{
 "id": "WPSEC-2026-1211",
 "url": "https://wpsec.com/vuln/WPSEC-2026-1211/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-1211/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-1211/index.md",
 "title": "Document Embedder – let visitors read files without downloading <= 2.4.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Document Library File URLs",
 "description": "The Document Embedder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via document library file URLs in all versions up to, and including, 2.4.0, due to insufficient sanitization of URL values saved through the 'bplde_save_document_library' AJAX action. Values such as 'javascript:' URLs fail URL validation and are then stored through sanitize_text_field, which leaves them intact. The front-end library viewer later uses them as download link hrefs and iframe sources without checking the scheme. This makes it possible for authenticated attackers, with contributor-level access and above, to inject scripts that execute when a user views a document library or clicks a document's view or download link.",
 "plugin": {
  "slug": "document-emberdder",
  "name": "Document Embedder – let visitors read files without downloading",
  "full_name": "Document Embedder – let visitors read files without downloading",
  "wordpress_org": "https://wordpress.org/plugins/document-emberdder/",
  "advisories_url": "https://wpsec.com/vuln/plugin/document-emberdder/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/document-emberdder"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "2.0.0",
    "from_inclusive": true,
    "to": "2.4.1",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 2.0.0 before 2.4.1"
  ]
 },
 "introduced_in": "2.0.0",
 "fixed_in": "2.4.1",
 "remediation": "Update to 2.4.1 or later.",
 "fix_released": "2026-10-17T05:48:13+00:00",
 "published": "2026-10-18T06:43:05+00:00",
 "updated": "2026-10-17T08:19:27.627264+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-1211/",
  "https://plugins.svn.wordpress.org/document-emberdder/tags/2.4.1/",
  "https://wordpress.org/plugins/document-emberdder/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/document-emberdder",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-10-18"
 }
}