Summary
CVE-2026-130841 is a path traversal vulnerability in ioBroker.lovelace that can let unauthenticated remote attackers read files outside the intended static-file directories. It becomes risky when the affected routes are reachable and requests containing unsanitized dot-dot segments can access sensitive files, such as configuration data or stored credentials.
Affected context
The issue affects ioBroker.lovelace deployments before 7.0.0 where the onCards() request handler serves files through the /cards/_static_/, /hacsfiles/, or /local/custom_ui/ routes. Risk depends on whether these routes are reachable by an attacker and whether path components are used without adequate validation and containment checks.
Exploit preconditions
- Attack surface: HTTP requests to the affected static-file routes
- Required access: The described issue does not require authentication
- Trigger point: A request handled by
onCards()that includes traversal segments - Why exploitation is possible: The handler may use an attacker-controlled path without reliably restricting file access to its intended directory
Why this happens
The underlying bug is improper limitation of a pathname to a restricted directory, which maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'). The insecure pattern is accepting path components from a request and resolving them to files without canonicalizing the path and verifying that the final location remains within an approved base directory.
Potential impact
- An attacker could read sensitive files accessible to the ioBroker process.
- Exposed configuration files may reveal credentials or other secrets.
- Disclosed information may enable further compromise of the application or its connected services.
General mitigation guidance
Defensive approaches focus on constraining file access to explicitly permitted locations. Common patterns include mapping requests to an allowlist of known assets, canonicalizing resolved paths and confirming they remain beneath a trusted base directory, and rejecting traversal or unexpected path components.
Reduce reliance on attacker-controlled paths, keep sensitive files outside served directories, and run the application with only the file permissions it needs. Authentication and network access controls can provide additional defense in depth, but should not replace safe path handling.
How teams detect issues like this
Review file-serving handlers for request-derived paths, incomplete canonicalization, and missing checks that resolved paths remain under an approved directory. Static analysis can flag path joins and file reads involving untrusted inputs; code review and tests can verify that traversal attempts are rejected across all relevant routes.
Policy checks may require allowlisted asset mappings or containment validation before filesystem access. Request monitoring can also identify suspicious traversal patterns without relying on a single signature.

