CVE-2024-47226 Cross-site scripting in n/a
Authenticated users can inject JavaScript into the Top banner field, though this is disputed as intended behavior for displaying HTML notifications.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-47226?
CVE-2024-47226 is a medium-severity cross-site scripting vulnerability in n/a, published on 22 Sep 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
A stored cross-site scripting (XSS) vulnerability exists in NetBox 4.1.0 within the "Configuration History" feature of the "Admin" panel via a /core/config-revisions/ Add action. An authenticated user can inject arbitrary JavaScript or HTML into the "Top banner" field. NOTE: Multiple third parties have disputed this as not a vulnerability. It is argued that the configuration revision banner feature is meant to contain unsanitized HTML in order to display notifications to users. Since these fields are intended to display unsanitized HTML, this is working as intended.
Weakness: CWE-79
Which versions are affected by CVE-2024-47226?
1 open source package ship an affected version, including pynetbox. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pynetbox PyPI | All versions to 4.1.0-NA | None |
Products include Netbox Netbox.
How do I fix CVE-2024-47226?
No fix has been published for CVE-2024-47226 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-47226 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-47226 exists.
Other vulnerabilities in n/a
Sources
Also known as GHSA-725j-ffcc-fc53, PYSEC-2024-325.