# CVE-2023-47115: Label Studio XSS Vulnerability on Avatar Upload

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.79% (percentile 79, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-q68h-xwq5-mm7x, PYSEC-2024-126
- **Published:** 2024-01-23T22:49:03.958Z
- **Modified:** 2026-09-10T03:50:05.049Z

## Who should check

- Projects that depend on PyPI package label-studio (\< 1.9.2)
- Anyone running HumanSignal label-studio \< 1.9.2

## Description

Label Studio is an a popular open source data labeling tool. Versions prior to 1.9.2 have a cross-site scripting (XSS) vulnerability that could be exploited when an authenticated user uploads a crafted image file for their avatar that gets rendered as a HTML file on the website. Executing arbitrary JavaScript could result in an attacker performing malicious actions on Label Studio users if they visit the crafted avatar image. For an example, an attacker can craft a JavaScript payload that adds a new Django Super Administrator user if a Django administrator visits the image.

The file \`users/functions.py\` lines 18-49 show that the only verification check is that the file is an image by extracting the dimensions from the file. Label Studio serves avatar images using Django's built-in \`serve\` view, which is not secure for production use according to Django's documentation. The issue with the Django \`serve\` view is that it determines the \`Content-Type\` of the response by the file extension in the URL path. Therefore, an attacker can upload an image that contains malicious HTML code and name the file with a \`.html\` extension to be rendered as a HTML page. The only file extension validation is performed on the client-side, which can be easily bypassed.

Version 1.9.2 fixes this issue. Other remediation strategies include validating the file extension on the server side, not in client-side code; removing the use of Django's \`serve\` view and implement a secure controller for viewing uploaded avatar images; saving file content in the database rather than on the filesystem to mitigate against other file related vulnerabilities; and avoiding trusting user controlled inputs.

## Affected and fixed versions

- PyPI `label-studio`: affected \< 1.9.2; fixed 1.9.2 (osv)
- HumanSignal label-studio: \< 1.9.2 (cvelist)

## Mitigation

- Upgrade label-studio to 1.9.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-47115. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-47115.md
Affected: label-studio < 1.9.2
Fixed in: 1.9.2

Steps:
1. Search this machine and project for label-studio (PyPI), HumanSignal label-studio: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-47115 being exploited?

There is no confirmed exploitation: CVE-2023-47115 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.79% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-47115?

High: CVSS 7.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2023-47115?

label-studio \< 1.9.2.

### Is there a fix for CVE-2023-47115?

Yes. Fixed in 1.9.2. Upgrade label-studio to 1.9.2 or later.

### How do I check if I'm affected by CVE-2023-47115?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/HumanSignal/label-studio/security/advisories/GHSA-q68h-xwq5-mm7x>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-47115>
- patch: <https://github.com/HumanSignal/label-studio/commit/a7a71e594f32ec4af8f3f800d5ccb8662e275da3>
- other: <https://docs.djangoproject.com/en/4.2/ref/views/#serving-files-in-development>
- other: <https://github.com/HumanSignal/label-studio/blob/1.8.2/label_studio/users/functions.py#L18-L49>
- other: <https://github.com/HumanSignal/label-studio/blob/1.8.2/label_studio/users/urls.py#L25-L26>
- other: <https://github.com/HumanSignal/label-studio>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/label-studio/PYSEC-2024-126.yaml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-47115>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-q68h-xwq5-mm7x> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2024-126> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-47115> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-47115>
