CVE-2026-120428

PandaWiki 3.65.0 through 3.87.5 Stored XSS via /static-file/ PDF Query-String Bypass

Published Nov 2, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
PandaWiki 3.65.0 through 3.87.5 contains a stored cross-site scripting vulnerability that allows unauthenticated attackers to upload HTML files with image extensions via /share/v1/common/file/upload. Attackers can lure administrators to /static-file/<key>?a=.pdf, bypassing the nginx attachment header to serve HTML inline and steal the panda_wiki_token JWT for session takeover.

Analysis

AI-generated

Technical impact

A stored cross‑site scripting flaw exists in PandaWiki when administrators upload an HTML file that is named with an image extension. The upload endpoint accepts the file and a subsequent request to /static‑file/<key>?a=.pdf serves the file inline by bypassing nginx’s attachment header. The rendered HTML steals the panda_wiki_token JWT, allowing an attacker to take over the administrator session without requiring the user’s credentials. This flaw is classified as CWE‑79 and results in a moderate risk of unauthorized access and potential data compromise.

Affected Systems

Chaitin’s PandaWiki versions 3.65.0 through 3.87.5 are affected. The issue is present in all releases within this range, regardless of deployment environment, as the vulnerable upload and static‑file handlers are included in the core distribution.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate severity. No EPSS score is available and the vulnerability is not listed in the CISA KEV catalog, suggesting lower current exploitation prevalence. Nevertheless, exploitation is straightforward: an unauthenticated attacker can upload the crafted file, then disclose a download link to an administrator. If the admin follows the link, the session token is captured. The attack requires only the ability to reach the upload endpoint and to entice the target to click the download link, both of which are commonly feasible in many environments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PandaWiki to a version later than 3.87.5 that removes the upload vulnerability or applies the provided patch to reject HTML files with image extensions and enforce strict content‑type validation.
  • Reconfigure nginx or the web server so that the /static‑file/* endpoint sets a Content‑Disposition: attachment header for all files and does not allow inline rendering of potentially malicious content.
  • Limit access to the /static‑file/* endpoint to authenticated users only, or add an additional token check so that only legitimate download requests can reach the handler.

Generated by OpenCVE AI on November 2, 2026 at 15:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Chaitin
Chaitin pandawiki
Vendors & Products Chaitin
Chaitin pandawiki
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 PandaWiki 3.65.0 through 3.87.5 contains a stored cross-site scripting vulnerability that allows unauthenticated attackers to upload HTML files with image extensions via /share/v1/common/file/upload. Attackers can lure administrators to /static-file/<key>?a=.pdf, bypassing the nginx attachment header to serve HTML inline and steal the panda_wiki_token JWT for session takeover.
Title PandaWiki 3.65.0 through 3.87.5 Stored XSS via /static-file/ PDF Query-String Bypass
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/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:N/UI:A/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
Nov 2, 2026, 5:34 PM
Reserved
Nov 2, 2026, 12:42 PM
Status
Deferred
Published
Nov 2, 2026, 3:17 PM
Modified
Nov 2, 2026, 7:35 PM