VDB
Sign up
MEDIUM5.5

GHSA-86rg-8hc8-v82p

LibreNMS is vulnerable to Reflected-XSS in `report_this` function

Quick fix

GHSA-86rg-8hc8-v82p — librenms/librenms: upgrade to the fixed version with the command below.

composer require librenms/librenms:^25.7.0

Details

### Summary Reflected-XSS in `report_this` function in `librenms/includes/functions.php`

### Details Recently, it was discovered that the `report_this` function had improper filtering (`htmlentities` function was incorrectly used in a href environment), which caused the `project_issues` parameter to trigger an XSS vulnerability.

The Vulnerable Sink: https://github.com/librenms/librenms/blob/master/includes/functions.php#L444

### PoC GET `project_issues=javascript:alert(document.cookie)`

### Impact XSS vulnerabilities allow attackers to execute malicious scripts in users' browsers, enabling unauthorized access to sensitive data, session hijacking, or malware distribution.

### Suggestion It is recommended to filter dangerous protocols, e.g. `javascript:`/`file:`.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/librenms/librenms
Introduced in: 0Fixed in: 25.7.0
Fixcomposer require librenms/librenms:^25.7.0

References