CVE-2024-26318 Cross-site Scripting in Serenity
Attackers can execute arbitrary scripts in user browsers via malicious email links due to insufficient validation of return URLs in the login page.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-26318?
CVE-2024-26318 is a medium-severity cross-site scripting vulnerability in n/a, published on 19 Feb 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Serenity before 6.8.0 allows XSS via an email link because LoginPage.tsx permits return URLs that do not begin with a / character.
Weakness: CWE-79
Which versions are affected by CVE-2024-26318?
4 open source packages ship an affected version, including Serenity.Net.Core and @serenity-is/corelib. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
Serenity.Net.Core NuGet | All versions | 6.8.0 |
Serenity.Net.Core NuGet | All versions | 6.8.0 |
@serenity-is/corelib npm | All versions | 6.8.0 |
@serenity-is/corelib npm | All versions | 6.8.0 |
Products include Serenity Serenity.
How do I fix CVE-2024-26318?
Upgrade Serenity.Net.Core to 6.8.0 or later.
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-26318 being exploited?
There is no known exploitation of CVE-2024-26318 in the wild and no public exploit code.
Sources
Also known as GHSA-5jjq-8cvj-v6m9.