{
 "id": "WPSEC-2026-1786",
 "url": "https://wpsec.com/vuln/WPSEC-2026-1786/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-1786/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-1786/index.md",
 "title": "Safe SVG <= 2.5.1 - Authenticated (Contributor+) CSS Injection via Safe SVG Block Attributes",
 "description": "The Safe SVG plugin for WordPress is vulnerable to CSS Injection via the Safe SVG block's alignment, backgroundColor, textColor and spacing attributes in all versions up to, and including, 2.5.1. This is due to the block's render callback placing these values into inline style attributes with only esc_attr(), which does not stop extra CSS declarations. This makes it possible for authenticated attackers with Contributor-level access and above to inject arbitrary CSS declarations into pages that contain the block, for example to overlay or restyle page content for visitors.",
 "plugin": {
  "slug": "safe-svg",
  "name": "Safe SVG",
  "full_name": "Safe SVG",
  "wordpress_org": "https://wordpress.org/plugins/safe-svg/",
  "advisories_url": "https://wpsec.com/vuln/plugin/safe-svg/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/safe-svg"
 },
 "type": "CONTENT INJECTION",
 "cwe": [
  "CWE-74"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 5.0,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "2.1.0",
    "from_inclusive": true,
    "to": "2.5.2",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 2.1.0 before 2.5.2"
  ]
 },
 "introduced_in": "2.1.0",
 "fixed_in": "2.5.2",
 "remediation": "Update to 2.5.2 or later.",
 "fix_released": "2026-10-26T22:32:07+00:00",
 "published": "2026-10-27T22:54:07+00:00",
 "updated": "2026-10-27T13:39:21.789331+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-1786/",
  "https://plugins.svn.wordpress.org/safe-svg/tags/2.5.2/",
  "https://wordpress.org/plugins/safe-svg/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/safe-svg",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "High",
  "affected_versions": "High",
  "as_of": "2026-10-27"
 }
}