# CVE-2024-47817: Unvalidated paragraph widget values can be used for Cross-site Scripting in lara-zeus

> Attackers can inject malicious scripts via unvalidated paragraph widget values, leading to cross-site scripting attacks against users viewing the dashboard.

- **Severity:** Medium 5.3 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 7 Oct 2024
- **Updated:** 8 Oct 2024
- **Also known as:** GHSA-c6cw-g7fc-4gwc

## What is CVE-2024-47817?

CVE-2024-47817 is a medium-severity cross-site scripting vulnerability in lara-zeus dynamic-dashboard, published on 7 Oct 2024. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

Lara-zeus Dynamic Dashboard simple way to manage widgets for your website landing page, and filament dashboard and Lara-zeus artemis is a collection of themes for the lara-zeus ecosystem. If values passed to a paragraph widget are not valid and contain a specific set of characters, applications are vulnerable to XSS attack against a user who opens a page on which a paragraph widget is rendered. Users are advised to upgrade to the appropriate fix versions detailed in the advisory metadata. There are no known workarounds for this vulnerability.

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

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

4 open source packages ship an affected version, including lara-zeus/dynamic-dashboard and lara-zeus/artemis.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `lara-zeus/dynamic-dashboard` | Packagist | From 3.0.0 | 3.0.2 |
| `lara-zeus/dynamic-dashboard` | Packagist | From 3.0.0 | 3.0.2 |
| `lara-zeus/artemis` | Packagist | From 1.0.0 | 1.0.7 |
| `lara-zeus/artemis` | Packagist | From 1.0.0 | 1.0.7 |

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

Upgrade lara-zeus/dynamic-dashboard to 3.0.2 or later.

## Is CVE-2024-47817 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-47817 exists.

## Fix prompt for AI coding agents

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

What it is: CVE-2024-47817 is a medium-severity cross-site scripting vulnerability in lara-zeus dynamic-dashboard, published on 7 Oct 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-47817 exists.

Affected packages and fixed versions:
- lara-zeus/dynamic-dashboard (Packagist): affected from 3.0.0; fixed in 3.0.2
- lara-zeus/dynamic-dashboard (Packagist): affected from 3.0.0; fixed in 3.0.2
- lara-zeus/artemis (Packagist): affected from 1.0.0; fixed in 1.0.7
- lara-zeus/artemis (Packagist): affected from 1.0.0; fixed in 1.0.7

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-47817/ (Markdown: https://insights.sbomify.com/CVE-2024-47817/index.md)
```

## Sources

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

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