CVE-2025-58174 LAM profile editor stored cross-site scripting vulnerability

Medium 4.6 Published Updated

An authenticated user can inject malicious scripts into profile names, leading to code execution when viewed by other users.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-58174?

CVE-2025-58174 is a medium-severity cross-site scripting vulnerability in LDAPAccountManager lam, published on 16 Sep 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

LDAP Account Manager (LAM) is a webfrontend for managing entries stored in an LDAP directory. LAM before 9.3 allows stored cross-site scripting in the Profile section via the profile name field, which renders untrusted input as HTML and executes a supplied script (for example a script element). An authenticated user with permission to create or edit a profile can insert a script payload into the profile name and have it executed when the profile data is viewed in a browser. This issue is fixed in version 9.3. No known workarounds are mentioned.

Weakness: CWE-79

Which versions are affected by CVE-2025-58174?

How do I fix CVE-2025-58174?

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-58174 being exploited?

There is no known exploitation of CVE-2025-58174 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2025-58174, GHSA-6gqg-wm9x-5x3m, UBUNTU-CVE-2025-58174.

Is CVE-2025-58174 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free