CVE-2025-31510CWE-79

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)…

High · published January 16, 2026

CVSS v3.1
7.2
EPSS
0%
Percentile
30.3
In the wild
Unconfirmed
What it is

⚡ A crafty XSS vulnerability in LemonLDAP::NG could let attackers inject malicious scripts into your login page! What a sneak attack! Think of it like a restaurant where a patron sneaks in their own menu item, substituting it for the chef’s special. The unsuspecting diners would be served something entirely different, and potentially harmful, without realizing it! This vulnerability could allow attackers to inject arbitrary scripts into the login page, potentially stealing user credentials or redirecting users to phishing sites. With users completely unaware, this could lead to devastating data breaches and loss of trust in your application!

Put simply

Think of it like a restaurant where a patron sneaks in their own menu item, substituting it for the chef’s special. The unsuspecting diners would be served something entirely different, and potentially harmful, without realizing it! In LemonLDAP::NG versions prior to 2.21.0, the XSS flaw lies in the ability of attackers to manipulate the 'tab' parameter during Choice authentication, allowing for the injection of arbitrary HTML or scripts into the login interface. This poses a significant risk as users interact with the compromised page.

What to do

This vulnerability could allow attackers to inject arbitrary scripts into the login page, potentially stealing user credentials or redirecting users to phishing sites. With users completely unaware, this could lead to devastating data breaches and loss of trust in your application! Upgrade your LemonLDAP::NG to version 2.21.0 or later to patch this vulnerability. Additionally, implement input validation on parameters like 'tab' to sanitize user inputs and prevent similar exploits in the future. You’ve got this! With these steps, you’ll secure your login page and keep those pesky attackers at bay! 🛡️

The record
Technical detail
CVSS v3.1
7.2 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00375 · 30.3th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2026-01-16T00:00Z
EPSS history
Timeline
  • 16 JAN 00:00Z
    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)…
    cvelistv5