/

CVE-2026-130841

Severity:

HIGH RISK

(7.5)

Path Traversal (CWE-22) in ioBroker.lovelace Routes

CVE-2026-130841

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Unauthorized Arbitrary File Read

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

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.

Sources

SourceLink
github.comgithub.com/ioBroker/ioBroker.lovelace/blob/v6.1.3/src/lib/server.ts#L1997-L2010
github.comgithub.com/ioBroker/ioBroker.lovelace/commit/e8dee3d08bddef088901326dab1ac7f12c2237d6
vulncheck.comvulncheck.com/advisories/iobroker-lovelace-before-7.0.0-unauthenticated-path-traversal-via-cards-route

Frequently asked

questions

The description indicates that unauthenticated remote attackers can exploit it if the affected routes are reachable.

No authentication is described as a prerequisite. Network reachability to the affected routes is the key condition.

Serve files through an allowlist or validate canonical resolved paths to ensure they remain inside an approved directory.

Treat request paths as untrusted, minimize filesystem permissions, keep sensitive files outside served locations, and include path-containment checks in code review and automated testing.

Find out what's already
exploitable in your codebase.