{
 "id": "WPSEC-2026-4426",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4426/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4426/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4426/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4426.json",
 "title": "File Upload Types by WPForms <= 1.5.0 - Authenticated (Author+) Stored Cross-Site Scripting via Malformed Type Declaration in Uploaded SVG and HTML Files",
 "description": "The File Upload Types by WPForms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via uploaded SVG and HTML files in all versions up to, and including, 1.5.0, due to improper detection of the XML/DOCTYPE type declaration during file sanitization. The plugin accepted '<?xml' or '<!DOCTYPE' anywhere in the file. It then took everything from the start of the file up to the first closing marker as the declaration and prepended it, unsanitized, to the kses-filtered content, so markup placed before the declaration survived sanitization. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts that execute whenever a user accesses the uploaded file, on sites where SVG or HTML uploads are enabled.",
 "plugin": {
  "slug": "file-upload-types",
  "name": "File Upload Types by WPForms",
  "full_name": "File Upload Types by WPForms",
  "wordpress_org": "https://wordpress.org/plugins/file-upload-types/",
  "advisories_url": "https://wpsec.com/vuln/plugin/file-upload-types/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/file-upload-types"
 },
 "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": "1.5.0",
    "from_inclusive": true,
    "to": "1.6.0",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 1.5.0 before 1.6.0"
  ]
 },
 "introduced_in": "1.5.0",
 "fixed_in": "1.6.0",
 "remediation": "Update to 1.6.0 or later.",
 "fix_released": "2026-12-01T14:15:37+00:00",
 "published": "2026-12-03T12:50:55+00:00",
 "updated": "2026-12-03T12:17:17.363910+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4426/",
  "https://plugins.svn.wordpress.org/file-upload-types/tags/1.6.0/",
  "https://wordpress.org/plugins/file-upload-types/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/file-upload-types",
 "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-12-03"
 }
}