Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-31510: CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') in lemonldap-ng LemonLDAP::NG

0
High
VulnerabilityCVE-2025-31510cvecve-2025-31510cwe-79
Published: Fri Jan 16 2026 (01/16/2026, 00:00:00 UTC)
Source: CVE Database V5
Vendor/Project: lemonldap-ng
Product: LemonLDAP::NG

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.

AI-Powered Analysis

AILast updated: 01/16/2026, 18:05:56 UTC

Technical Analysis

CVE-2025-31510 is a cross-site scripting (XSS) vulnerability classified under CWE-79 that affects LemonLDAP::NG, an open-source web single sign-on (SSO) and access management system. The vulnerability exists in the portal component of LemonLDAP::NG versions before 2.21.0, specifically in the handling of the 'tab' parameter used during Choice authentication. An attacker can craft a malicious URL containing a specially crafted 'tab' parameter that injects arbitrary JavaScript or HTML code into the login page. Because the input is not properly neutralized or sanitized before being reflected in the web page, this leads to stored or reflected XSS. The vulnerability has a CVSS 3.1 base score of 7.2, indicating high severity, with an attack vector of network (remote), no privileges required, no user interaction needed, and a scope change (affecting components beyond the vulnerable code). The impact includes partial confidentiality and integrity loss, such as session hijacking, credential theft, or manipulation of the authentication process. No known public exploits have been reported yet, but the vulnerability's characteristics make it a likely target for attackers aiming to compromise authentication portals. LemonLDAP::NG is widely used in European public sector and enterprise environments for centralized authentication, making this vulnerability particularly relevant for organizations relying on it for secure access management.

Potential Impact

For European organizations, exploitation of this XSS vulnerability can lead to significant security risks including theft of user credentials, session hijacking, and unauthorized access to protected resources. Since LemonLDAP::NG is often deployed in critical environments such as government portals, universities, and large enterprises, successful attacks could compromise sensitive personal data and internal systems. The vulnerability undermines the integrity of the authentication process, potentially allowing attackers to bypass security controls or impersonate legitimate users. This can result in data breaches, regulatory non-compliance (e.g., GDPR violations), and reputational damage. The lack of required authentication or user interaction lowers the barrier for attackers, increasing the likelihood of exploitation. Additionally, the scope change in the CVSS vector suggests that the vulnerability affects components beyond the immediate input handling, potentially impacting broader system security. Organizations using vulnerable versions must consider the risk of targeted attacks, especially in sectors with high-value data or critical infrastructure.

Mitigation Recommendations

The primary mitigation is to upgrade LemonLDAP::NG to version 2.21.0 or later, where this vulnerability has been addressed. If immediate upgrading is not feasible, organizations should implement strict input validation and output encoding on the 'tab' parameter to neutralize any injected scripts. Web application firewalls (WAFs) can be configured to detect and block suspicious payloads targeting the 'tab' parameter. Additionally, security teams should monitor authentication portal logs for unusual URL parameters or access patterns indicative of exploitation attempts. Employing Content Security Policy (CSP) headers can help mitigate the impact of injected scripts by restricting script execution sources. Regular security assessments and penetration testing focused on authentication components are recommended to detect similar vulnerabilities. Finally, educating users about phishing and suspicious links can reduce the risk of successful exploitation via social engineering.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
mitre
Date Reserved
2025-03-28T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 696a7aa9b22c7ad868c57647

Added to database: 1/16/2026, 5:51:37 PM

Last enriched: 1/16/2026, 6:05:56 PM

Last updated: 1/16/2026, 7:12:24 PM

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats