XSS Vulnerability in phpLDAPadmin: Risk of Malicious Value Execution

phpldapadmin Updated 02 Oct 2025

Summary

11/12/2020
N/A
Yes i
Medium
5.4

CVE-2020-35132: An XSS issue has been discovered in phpLDAPadmin before 1.2.6.2 that allows users to store malicious values that may be executed by other users at a later time via get_request in lib/function.php. Affects phpldapadmin across 2 version ranges.

< 1.2.6.3-0.3 < c87571f6b7be15d5cd8b26381b6eb31ad03d28e2

Fixed in 1.2.6.3-0.3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

phpLDAPadmin is a web-based application used for managing LDAP directories. It provides a user-friendly interface for administrators to perform various tasks such as browsing and editing LDAP entries. Despite its utility, phpLDAPadmin has been found to have a critical vulnerability that allows users to store malicious values, potentially compromising the security of other users accessing the application.

Vulnerability Detail

An XSS (Cross-Site Scripting) vulnerability has been identified in phpLDAPadmin versions prior to 1.2.6.2. This flaw allows attackers to inject malicious scripts into the application, which can be executed by other users when they access the affected data. The vulnerability originates from the improper handling of user input in the get_request function located in lib/function.php. If exploited, this could lead to unauthorized actions being performed on behalf of the victim, data theft, or session hijacking.

How To Fix

Minimum fixed version

1.2.6.3-0.3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpldapadmin

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading is not immediately possible, consider restricting access to the phpLDAPadmin interface to trusted users only. Additionally, ensure that input validation and sanitization are implemented to mitigate the risk of XSS attacks.

Conclusion

The XSS vulnerability in phpLDAPadmin poses a significant risk to users by allowing the execution of malicious scripts. It is crucial to upgrade to the latest version to protect against potential attacks. Implementing temporary workarounds can help mitigate risks until an upgrade is possible.

See every vulnerability recorded for phpldapadmin →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 5.4, indicating a medium level of risk.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to unauthorized actions, data theft, and session hijacking, compromising user accounts and sensitive information.

Yes, you can restrict access to the phpLDAPadmin interface and implement input validation and sanitization as temporary measures.

Versions of phpLDAPadmin prior to 1.2.6.2 are affected by this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for phpldapadmin.

How To Fix

Minimum fixed version

1.2.6.3-0.3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpldapadmin

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback