Skip to content
HighVulnerability

CVE-2023-47115: Label Studio stored XSS through crafted avatar image upload

Identifier
CVE-2023-47115
Published
Record updated
View JSON
Affected
  • label-studio < 1.9.2
Fixed in
1.9.2
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.4%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2023-47115 affects Label Studio versions prior to 1.9.2. An authenticated user can upload a crafted avatar image containing HTML, which the Django serve view renders as an HTML page because it sets Content-Type from the URL's file extension. If a Django administrator visits the crafted image, arbitrary JavaScript runs and could add a new Django Super Administrator user.

Mitigation

Fixed in 1.9.2. Other remediation strategies in the source include validating the file extension on the server side, removing the use of Django's serve view in favor of a secure controller for viewing uploaded avatar images, storing file content in the database rather than on the filesystem, and avoiding trust in user-controlled inputs.