CVE-2025-50183
mediumpriority · track · 0EPSS 0.003 · 24 %ileEUUSEPSS · scored 2026-10-28
OpenList Frontend is a UI component for OpenList. Prior to version 4.0.0-rc.4, a vulnerability exists in the file preview/browsing feature of the application, where files with a .py extension that contain JavaScript code wrapped in <script> tags may be interpreted and executed as HTML in certain modes. This leads to a stored XSS vulnerability. This issue has been patched in version 4.0.0-rc.4.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
- npm @openlist-frontend/openlist-frontend< 4.0.0-rc.4osvUSpkg:npm/%40openlist-frontend/openlist-frontend
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-2hw3-h8qx-hqqpOpenList (frontend) allows XSS Attacks in the built-in Markdown Viewer2025-06-18ghsa · osvUS
XSS via `.py` file containing script tag interpreted as HTML ## Summary A vulnerability exists in the file preview/browsing feature of the application, where files with a `.py` extension that contain JavaScript code wrapped in `<script>` tags may be interpreted and executed as HTML in certain modes. This leads to a stored XSS vulnerability. ## Affected Versions * <= 4.0.0-rc.3 ## PoC Create a `.py` file with arbitrary JavaScript content wrapped in `<script>` tags. For example: ```javascript <script>alert(document.cookie);</script> ``` When a victim views the file in browsing mode (e.g., a rendered preview), the JavaScript is executed in the browser context. --- ## Attack vector An attacker can place such a `.py` file in the system via remote channels, such as: * Convincing a webmaster to download or upload the file; * Tricking users into accessing a file link via public URLs. ## Required permissions * None, if public or visitor access is enabled. * If the file is uploaded by a user with elevated permissions, potential privilege boundaries may be crossed. ## User interaction Yes. The user must manually click to switch to the browsing or preview mode to trigger the script. And seems only when using `ISO-8859-1` encoding. ## Scope * Unchanged `(S:U)` - The attack does not cross system or privilege boundaries in general. * ⚠️ Controversial edge case: If sensitive preview files are accessible due to misconfiguration, scope could be considered Changed `(S:C)`. ## Impact * Confidentiality: User information including cookies, login state, and localStorage may be accessed. Some files that only can be viewed via this user will leak too. * Integrity & Availability: Not directly impacted. --- ## Recommendations * Treat all previewed file types (including non-HTML like .py) as plain text unless explicitly sanitized. * Disable rendering modes that can interpret user-uploaded content as HTML. ## Timeline | Date | Event | |------|-------| | 2025-06-17 | Vulnerability reported | | 2025-06-17 | Comminuty Manager confirmed | | 2025-06-17 | Fixed | # Credits * Discovered by: @zyk2507 * Reported to: [The OpenList Team](https://github.com/OpenListTeam) * Analyzed and confirmed by: @jyxjjj * Fixed by: @cxw620 * Fixed in: `4.0.0-rc.4`
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/OpenListTeam/OpenList-Frontend/commit/7b5ed20c608c7b9b36d1950a386678e0a89f8175cnnvd
- https://github.com/OpenListTeam/OpenList/security/advisories/GHSA-2hw3-h8qx-hqqpcnnvd
- https://github.com/OpenListTeam/OpenList/tagsPatchcnnvd
- https://github.com/OpenListTeam/OpenList-Frontend/commit/7b5ed20c608c7b9b36d1950a386678e0a89f8175enisa_euvd
- https://github.com/OpenListTeam/OpenList/security/advisories/GHSA-2hw3-h8qx-hqqpenisa_euvd
- https://github.com/OpenListTeam/OpenList-Frontend/commit/7b5ed20c608c7b9b36d1950a386678e0a89f8175nvd
- https://github.com/OpenListTeam/OpenList/security/advisories/GHSA-2hw3-h8qx-hqqpnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan