Reflected XSS in LMS dbrecover.php and netremap.php
CVE-2026-40457 is a reflected cross-site scripting vulnerability in LMS (LAN Management System) affecting versions before commit 9c5651b. The issue is present in the dbrecover.php and netremap.php modules, where unsanitized GET parameters are directly embedded into HTML output. Because attacker-controlled input is reflected back into the response without proper output encoding or sanitization, an attacker can craft a malicious URL that causes arbitrary JavaScript to execute in the victim's browser when opened by an authenticated user. The available reporting also notes that exploitation may depend on application state, such as a network being defined in the system.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows arbitrary JavaScript execution in the browser session of an authenticated LMS user who clicks a crafted link. This can enable theft of session data, execution of actions in the victim's context within the application, access to data visible to that user, and other browser-based post-exploitation effects typical of reflected XSS.
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce exposure by restricting access to LMS to trusted users and networks, monitoring for suspicious crafted URLs targeting dbrecover.php and netremap.php, and applying temporary code changes or WAF rules to block or sanitize malicious input to the affected GET parameters. User awareness can also reduce risk by discouraging authenticated users from opening unsolicited LMS links. These are temporary measures and do not replace patching.
Patch, then assume compromise.
Update LMS to a version that includes commit 9c5651b or later, which fixes the vulnerable handling in dbrecover.php and netremap.php. In general, remediation should ensure that all user-controlled GET parameters reflected into HTML are properly validated and context-appropriately encoded before output.
No public exploits tracked yet. Mallory keeps watching.
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.