{"answers":{"affected":"3 open source packages ship an affected version, including label-studio. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-43791 exists.","fix":"Upgrade label-studio to 1.8.2 or later.","what":"CVE-2023-43791 is a critical vulnerability in HumanSignal label-studio, published on 9 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-43791 and fix it if it is affected.\n\nWhat it is: CVE-2023-43791 is a critical vulnerability in HumanSignal label-studio, published on 9 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-43791 exists.\n\nAffected packages and fixed versions:\n- label-studio (PyPI): affected all versions; fixed in 1.8.2\n- label-studio (PyPI): affected all versions; fixed in 1.8.2\n- label-studio (PyPI): affected all versions; fixed in 1.8.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-43791/ (Markdown: https://insights.sbomify.com/CVE-2023-43791/index.md)","id":"CVE-2023-43791","markdown":"https://insights.sbomify.com/CVE-2023-43791/index.md","name":"CVE-2023-43791","record":{"aliases":["GHSA-f475-x83m-rx5m","PYSEC-2023-274"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["privilege_escalation","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Label Studio","requires_auth":"none","summary":"Attackers can exploit a hardcoded Django SECRET_KEY to forge session tokens and escalate privileges to super administrator.","user_interaction":"not_required","vuln_class":"hardcoded_credentials"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"label_studio","vendor":"humansignal"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"Label Studio is a multi-type data labeling and annotation tool with standardized output format. There is a vulnerability that can be chained within the ORM Leak vulnerability to impersonate any account on Label Studio. An attacker could exploit these vulnerabilities to escalate their privileges from a low privilege user to a Django Super Administrator user. The vulnerability was found to affect versions before `1.8.2`, where a patch was introduced.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Label Studio has Hardcoded Django `SECRET_KEY` that can be Abused to Forge Session Tokens","id":"CVE-2023-43791","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"hardcoded_credentials","year":"2023"},"n_packages":3,"n_references":4,"next":{"headline":"baserCMS Code Injection Vulnerability in Mail Form Feature","id":"CVE-2023-43792"},"packages":[{"ecosystem":"PyPI","fixed":["1.8.2"],"introduced":["0"],"last_affected":[],"package":"label-studio","purl":null,"source":"GHSA-f475-x83m-rx5m"},{"ecosystem":"PyPI","fixed":["1.8.2"],"introduced":["0"],"last_affected":[],"package":"label-studio","purl":"pkg:pypi/label-studio","source":"GHSA-f475-x83m-rx5m"},{"ecosystem":"PyPI","fixed":["1.8.2"],"introduced":["0"],"last_affected":[],"package":"label-studio","purl":"pkg:pypi/label-studio","source":"PYSEC-2023-274"}],"prev":{"headline":"iTop vulnerable to XSS in friendlyname in object details","id":"CVE-2023-43790"},"products":["label-studio"],"published":"2023-11-09","related":[{"cvss_score":8.6,"headline":"Label Studio vulnerable to full account takeover by chaining Stored XSS + IDOR in User Profile via custom_hotkeys field","id":"CVE-2026-22033","kev_date_added":null,"published":"2026-01-12"},{"cvss_score":8.6,"headline":"Label Studio allows Server-Side Request Forgery in the S3 Storage Endpoint","id":"CVE-2025-25297","kev_date_added":null,"published":"2025-02-14"},{"cvss_score":7.6,"headline":"label-studio vulnerable to Cross-Site Scripting (Reflected) via the label_config parameter.","id":"CVE-2025-47783","kev_date_added":null,"published":"2025-05-14"},{"cvss_score":7.5,"headline":"Object Relational Mapper Leak Vulnerability in Filtering Task in Label Studio","id":"CVE-2023-47117","kev_date_added":null,"published":"2023-11-13"},{"cvss_score":7.1,"headline":"Label Studio XSS Vulnerability on Avatar Upload","id":"CVE-2023-47115","kev_date_added":null,"published":"2024-01-23"},{"cvss_score":6.1,"headline":"Label Studio allows Cross-Site Scripting (XSS) via GET request to `/projects/upload-example` endpoint","id":"CVE-2025-25296","kev_date_added":null,"published":"2025-02-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-09-03","vendors":["HumanSignal"]},"summary":"Attackers can exploit a hardcoded Django SECRET_KEY to forge session tokens and escalate privileges to super administrator.","url":"https://insights.sbomify.com/CVE-2023-43791/"}