# CVE-2024-43412: Xibo CMS XSS vulnerability when previewing files uploaded to the library containing HTML/JS


- **Severity:** Medium 4.6 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Fix available:** No
- **Published:** 3 Sep 2024
- **Updated:** 3 Sep 2024
- **Also known as:** GHSA-336f-wrgx-57gg

## What is CVE-2024-43412?

CVE-2024-43412 is a medium-severity vulnerability in xibosignage xibo-cms, published on 3 Sep 2024. 

### Official description

Xibo is an open source digital signage platform with a web content management system (CMS). Prior to version 4.1.0, a cross-site scripting vulnerability in Xibo CMS allows authorized users to execute arbitrary JavaScript via the file preview function. Users can upload HTML/CSS/JS files into the Xibo Library via the Generic File module to be referenced on Displays and in Layouts. This is intended functionality. When previewing these resources from the Library and Layout editor they are executed in the users browser. This will be disabled in future releases, and users are encouraged to use the new developer tools in 4.1 to design their widgets which require this type of functionality. This behavior has been changed in 4.1.0 to preview previewing of generic files. There are no workarounds for this issue.

Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation)

## Which versions are affected by CVE-2024-43412?

It affects 1 product.


Products: Xibosignage Xibo.

## How do I fix CVE-2024-43412?

No fix has been published for CVE-2024-43412 yet. Limit exposure of the affected software until one is available.

## Is CVE-2024-43412 being exploited?

There is no known exploitation of CVE-2024-43412 in the wild and no public exploit code.

## Other vulnerabilities in xibosignage xibo-cms

- [CVE-2023-33177](https://insights.sbomify.com/CVE-2023-33177/): Xibo CMS vulnerable to Remote Code Execution through Zip Slip (high 8.8)
- [CVE-2024-41802](https://insights.sbomify.com/CVE-2024-41802/): Xibo allows Sensitive Information Disclosure abusing SQL Injection in Xibo CMS DataSet Data Import (high 8.1)
- [CVE-2026-31952](https://insights.sbomify.com/CVE-2026-31952/): Xibo CMS API has SQL Injection via DataSet Filter Parameter (high 7.6)
- [CVE-2013-4887](https://insights.sbomify.com/CVE-2013-4887/): SQL injection in n/a (high 7.5)
- [CVE-2025-62369](https://insights.sbomify.com/CVE-2025-62369/): Xibo CMS: Remote Code Execution through module templates (high 7.2)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-43412 and fix it if it is affected.

What it is: CVE-2024-43412 is a medium-severity vulnerability in xibosignage xibo-cms, published on 3 Sep 2024. 
Exploitation: There is no known exploitation of CVE-2024-43412 in the wild and no public exploit code.

Affected product: xibosignage xibo-cms. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. 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.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-43412/ (Markdown: https://insights.sbomify.com/CVE-2024-43412/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-43412
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-43412
- OSV: https://osv.dev/vulnerability/CVE-2024-43412

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-43412/
Summaries are generated and may contain mistakes; the official description above is the record.
