CVE-2025-50183: @openlist frontend/openlist frontend Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-2hw3-h8qx-hqqp
CVSS 6.5
CWE-79
Published
Advisory Summary

CVE-2025-50183 is a MODERATE (CVSS 6.5) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting @openlist frontend/openlist frontend libraries in the npm ecosystem. The issue involves openlist (frontend) allows xss attacks in the built-in markdown viewer. Remediation is available by upgrading affected packages to version 4.0.0-rc.4.

CVE-2025-50183 at a Glance

CVE Identifier CVE-2025-50183
GHSA Identifier GHSA-2hw3-h8qx-hqqp
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product @openlist frontend/openlist frontend
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2025-50183

To remediate this vulnerability, upgrade all affected @openlist frontend/openlist frontend dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@openlist-frontend/openlist-frontend fixed: 4.0.0-rc.4
npm install @openlist-frontend/openlist-frontend@4.0.0-rc.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @openlist-frontend/openlist-frontend

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-50183, inspect your project dependencies using npm:

npm ls @openlist-frontend/openlist-frontend

Analyze the terminal output to locate any version of @openlist frontend/openlist frontend in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.0-rc.4), your application is affected.

Note: The npm ls @openlist-frontend/openlist-frontend command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In @openlist frontend/openlist frontend, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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`

CVE-2025-50183 Affected @openlist frontend/openlist frontend Versions

1 component(s)
Fixed Versions:
4.0.0-rc.4
Product / Package Ecosystem Affected Versions Fixed Version
@openlist-frontend/openlist-frontend
npm
< 4.0.0-rc.4
4.0.0-rc.4

References

Frequently Asked Questions

What is CVE-2025-50183?
CVE-2025-50183 is a security vulnerability in @openlist frontend/openlist frontend involving OpenList (frontend) allows XSS Attacks in the built-in Markdown Viewer under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which @openlist frontend/openlist frontend versions are affected?
Affected versions include releases prior to 4.0.0-rc.4 across affected packages: @openlist-frontend/openlist-frontend.
What version fixes CVE-2025-50183?
Upgrading to 4.0.0-rc.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @openlist-frontend/openlist-frontend affected?
Yes, @openlist-frontend/openlist-frontend is affected in releases prior to 4.0.0-rc.4. Upgrade your dependency to 4.0.0-rc.4 or later.
What is the CVSS score of CVE-2025-50183?
CVE-2025-50183 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2025-50183?
CVE-2025-50183 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for CVE-2025-50183?
Run the dependency tree command: 'npm ls @openlist-frontend/openlist-frontend'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2hw3-h8qx-hqqp",
  "modified" : "2025-06-19T15:19:19Z",
  "published" : "2025-06-18T14:41:25Z",
  "aliases" : [ "CVE-2025-50183" ],
  "summary" : "OpenList (frontend) allows XSS Attacks in the built-in Markdown Viewer",
  "details" : "XSS via `.py` file containing script tag interpreted as HTML\n\n## Summary\n\nA 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.\n\n## Affected Versions\n\n* <= 4.0.0-rc.3\n\n## PoC\n\nCreate a `.py` file with arbitrary JavaScript content wrapped in `<script>` tags. For example:\n\n```javascript\n<script>alert(document.cookie);</script>\n```\n\nWhen a victim views the file in browsing mode (e.g., a rendered preview), the JavaScript is executed in the browser context.\n\n--- \n\n## Attack vector\n\nAn attacker can place such a `.py` file in the system via remote channels, such as:\n* Convincing a webmaster to download or upload the file; \n* Tricking users into accessing a file link via public URLs.\n\n## Required permissions\n\n* None, if public or visitor access is enabled.\n* If the file is uploaded by a user with elevated permissions, potential privilege boundaries may be crossed.\n\n## User interaction\n\nYes. 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.\n\n## Scope\n\n* Unchanged `(S:U)` - The attack does not cross system or privilege boundaries in general.\n* ⚠️ Controversial edge case: If sensitive preview files are accessible due to misconfiguration, scope could be considered Changed `(S:C)`.\n\n## Impact\n\n* 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.\n* Integrity & Availability: Not directly impacted.\n\n---\n\n## Recommendations\n\n* Treat all previewed file types (including non-HTML like .py) as plain text unless explicitly sanitized.\n* Disable rendering modes that can interpret user-uploaded content as HTML.\n\n## Timeline\n\n| Date | Event |\n|------|-------|\n| 2025-06-17 | Vulnerability reported |\n| 2025-06-17 | Comminuty Manager confirmed |\n| 2025-06-17 | Fixed |\n\n# Credits\n\n* Discovered by: @zyk2507\n* Reported to: [The OpenList Team](https://github.com/OpenListTeam)\n* Analyzed and confirmed by: @jyxjjj\n* Fixed by: @cxw620\n* Fixed in: `4.0.0-rc.4`",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@openlist-frontend/openlist-frontend"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.0-rc.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.0.0-rc.3"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/OpenListTeam/OpenList/security/advisories/GHSA-2hw3-h8qx-hqqp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-50183"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OpenListTeam/OpenList-Frontend/commit/7b5ed20c608c7b9b36d1950a386678e0a89f8175"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OpenListTeam/OpenList"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-18T14:41:25Z",
    "nvd_published_at" : "2025-06-19T03:15:25Z"
  }
}