CVE-2025-31510 Cross-site scripting in LemonLDAP::NG
Remote attackers can inject arbitrary web script or HTML into the login page via the tab parameter, potentially leading to session hijacking or malicious actions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-31510?
CVE-2025-31510 is a high-severity cross-site scripting vulnerability in lemonldap-ng LemonLDAP::NG, published on 16 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In the portal in LemonLDAP::NG before 2.21.0, cross-site scripting (XSS) allows remote attackers to inject arbitrary web script or HTML (into the login page) via the tab parameter, for Choice authentication.
Weakness: CWE-79
Which versions are affected by CVE-2025-31510?
How do I fix CVE-2025-31510?
Upgrade to a fixed version.
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-2025-31510 being exploited?
There is no known exploitation of CVE-2025-31510 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2025-31510, DLA-4119-1, DSA-5897-1, GHSA-55mm-vp96-5r7h, UBUNTU-CVE-2025-31510.