/

CVE-2026-125086

Severity:

CRITICAL RISK

(10.0)

Hard-Coded Credentials (CWE-798) in D-Link M60 MQTT

CVE-2026-125086

Deferred

Vulnerability type

Category:

Hard-Coded Credentials

CWE:

CWE-259, CWE-798

Impact:

Potential unauthorized access to the MQTT broker

Severity:

CRITICAL RISK

(10.0)

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

D-Link M60's emDaemon MQTT Broker is reported to contain hard-coded credentials associated with its Mosquitto configuration. A remote attacker may be able to exploit the issue when the affected broker is reachable; if the credentials are accepted, they could enable unauthorized access.

Affected context

The reported issue affects D-Link M60 firmware 1.12.B01 and the emDaemon MQTT Broker, with the relevant behavior associated with /etc/emDaemon/mosquitto.conf. The description identifies the system function and a hard-coded-credentials condition, but does not specify the exact remote trigger or the permissions needed to reach it. Risk depends in part on the broker's exposure and whether the credentials remain usable.

Exploit preconditions

  • Attack surface: The emDaemon MQTT Broker or related functionality must be reachable through a remote attack path.
  • Required access: The report does not specify whether authentication or other access is needed before triggering the issue.
  • Trigger point: The reported behavior involves the system function associated with /etc/emDaemon/mosquitto.conf; the precise trigger is not described.
  • Why exploitation may be possible: Hard-coded credentials can be discoverable or reusable and may bypass the intended credential-management boundary if accepted by the broker.
  • Disclosure status: The exploit has been publicly disclosed, according to the report.

Why this happens

The reported weakness is the use of credentials embedded in a product or its configuration rather than managed as protected, changeable secrets. This aligns with CWE-798: Use of Hard-coded Credentials and may also relate to CWE-259: Use of Hard-coded Password. Static credentials can be exposed through software or configuration and may remain valid across deployments, weakening authentication controls.

Potential impact

  • An attacker may gain unauthorized access to the MQTT broker if the embedded credentials are usable.
  • Broker access could allow an attacker to read or publish messages, depending on configured permissions.
  • Compromised access could affect connected devices or services that trust broker messages.
  • Exposure of reusable credentials could increase risk to other systems if the same secrets are shared.

General mitigation guidance

Defensive approaches generally focus on removing embedded secrets and limiting the consequences of credential exposure:

  • Use unique, deployment-specific credentials managed through a protected secret-management mechanism.
  • Require credentials to be changeable and rotate them when exposure is suspected.
  • Configure the broker to require authentication and grant clients only the permissions they need.
  • Restrict network access to the broker and avoid exposing management or configuration functions to untrusted networks.
  • Keep configuration files protected from unauthorized access and modification.
  • Prefer secure-by-default settings that deny unauthenticated access and minimize service privileges.

How teams detect issues like this

  • Review source code, firmware artifacts, and configuration files for embedded passwords, tokens, or other static credentials.
  • Use static analysis and secret-scanning rules to flag credential literals and credential values passed to system or configuration-handling functions.
  • During code review, examine how MQTT credentials are generated, stored, changed, and scoped.
  • Enforce policies that prohibit committed secrets and require authenticated, least-privilege broker configurations.
  • Monitor broker authentication and access logs for unexpected clients, repeated failures, or unusual publish and subscribe activity.

Sources

SourceLink
github.comgithub.com/XueDugu/dlink-m60-easymesh-mqtt-credential-evidence
vuldb.comvuldb.com/cve/CVE-2026-125086
vuldb.comvuldb.com/submit/1042370
vuldb.comvuldb.com/vuln/433197
vuldb.comvuldb.com/vuln/433197/cti
dlink.comdlink.com/

Frequently asked

questions

The report describes remote attack execution, but does not provide the exact trigger or network conditions. Exposure of the affected broker or related functionality is therefore an important factor.

The description does not clarify whether prior authentication is required. It identifies hard-coded credentials, which may be usable if an attacker can reach the relevant service and the credentials are accepted.

Remove embedded credentials and use unique, protected, changeable secrets, with broker permissions limited to each client's needs.

Scan code and firmware for hard-coded secrets, enforce secret-handling policies in development workflows, and use secure-by-default broker settings with restricted network access.

Find out what's already
exploitable in your codebase.