CVE-2026-104461

YesWiki before 4.6.7 Stored XSS via Unsanitized SVG Upload in Bazar FileField

Published Oct 2, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
YesWiki before 4.6.7 contains a stored cross-site scripting vulnerability in the Bazar FileField, which validates only the upload's file extension and never calls HtmlPurifierService::cleanFile, so SVG files are stored verbatim and served inline as image/svg+xml. Authenticated users can submit entries via POST /api/entries/{formId} with SVG files containing script that executes in the wiki origin when the file is opened, enabling administrator session or account compromise.

Analysis

AI-generated

Technical impact

YesWiki before 4.6.7 stores uploaded SVG files without sanitization, serving them inline as image/svg+xml. An attacker who is able to authenticate to the site can submit a crafted SVG via POST /api/entries/{formId}. The SVG may contain embedded scripts that execute in the context of the wiki origin when the file is viewed, giving the attacker the power to run arbitrary code as the administrator or compromise an administrator’s session.

Affected Systems

The vulnerability affects all installations of YesWiki with a version earlier than 4.6.7. It is present in the YesWiki product, which is identified by the CNA as yeswiki:yeswiki.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. The attack vector requires an authenticated user to upload a malicious SVG file, so the exploit can occur only when the attacker has legitimate access credentials. Once the SVG is displayed by a user, the embedded script runs with the privileges of that user, potentially allowing compromise of administrator accounts if the script can elevate privileges or hijack sessions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update YesWiki to version 4.6.7 or later, where the SVG upload sanitization has been added.
  • If an immediate upgrade is not feasible, limit the accepted MIME types for uploads and reject or sanitize SVG files on the server side before storage.
  • Configure the web server or application to disable inline serving of SVG content or enforce a strict content security policy that blocks script execution within SVG files.

Generated by OpenCVE AI on October 2, 2026 at 13:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description YesWiki before 4.6.7 contains a stored cross-site scripting vulnerability in the Bazar FileField, which validates only the upload's file extension and never calls HtmlPurifierService::cleanFile, so SVG files are stored verbatim and served inline as image/svg+xml. Authenticated users can submit entries via POST /api/entries/{formId} with SVG files containing script that executes in the wiki origin when the file is opened, enabling administrator session or account compromise.
Title YesWiki before 4.6.7 Stored XSS via Unsanitized SVG Upload in Bazar FileField
First Time appeared Yeswiki
Yeswiki yeswiki
Weaknesses CWE-79
CPEs cpe:2.3:a:yeswiki:yeswiki:*:*:*:*:*:*:*:*
Vendors & Products Yeswiki
Yeswiki yeswiki
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 6, 2026, 4:17 PM
Reserved
Oct 2, 2026, 12:55 AM
Status
Deferred
Published
Oct 2, 2026, 12:17 PM
Modified
Oct 6, 2026, 5:17 PM