# CVE-2026-63640: MagicMirror socket payload secret placeholder expansion can disclose SECRET\_\* environment variables

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.3
- **CVSS:** 4.3 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-28)
- **CWE:** CWE-200
- **Aliases:** GHSA-q4gh-4ffp-5cg8
- **Published:** 2026-08-18T17:35:44.944Z
- **Modified:** 2026-10-22T22:10:00.250Z

## Who should check

- Projects that depend on npm package magicmirror (\< 2.37.0)
- Anyone running MagicMirrorOrg MagicMirror \< 2.37.0

## Description

MagicMirror² is an open source modular smart mirror platform. Prior to 2.37.0, when hideConfigSecrets is enabled, the catch-all socket dispatcher in js/node\_helper.js passes every inbound object payload through replaceSecretPlaceholder in js/server\_functions.js before invoking socketNotificationReceived. A client connected to a loaded module namespace can submit a SECRET\_API\_KEY placeholder, causing the server to replace it with the corresponding process environment value. The default weather helper accepts INIT\_WEATHER, copies the attacker-controlled instanceId, and returns it in WEATHER\_ERROR, providing an echo path for the expanded secret. This reverses the intended one-way redaction boundary and can disclose API tokens, credentials, or service keys stored in SECRET\_ variables. This issue is fixed in version 2.37.0.

## Affected and fixed versions

- npm `magicmirror`: affected \< 2.37.0; fixed 2.37.0 (osv)
- MagicMirrorOrg MagicMirror: \< 2.37.0 (cvelist)

## Mitigation

- Upgrade magicmirror to 2.37.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-63640. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-63640.md
Affected: magicmirror < 2.37.0
Fixed in: 2.37.0

Steps:
1. Search this machine and project for magicmirror (npm), MagicMirrorOrg MagicMirror: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-63640 being exploited?

There is no confirmed exploitation: CVE-2026-63640 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-63640?

Medium: CVSS 4.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-63640?

magicmirror \< 2.37.0.

### Is there a fix for CVE-2026-63640?

Yes. Fixed in 2.37.0. Upgrade magicmirror to 2.37.0 or later.

### How do I check if I'm affected by CVE-2026-63640?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/MagicMirrorOrg/MagicMirror/security/advisories/GHSA-q4gh-4ffp-5cg8>
- patch: <https://github.com/MagicMirrorOrg/MagicMirror/pull/4184>
- patch: <https://github.com/MagicMirrorOrg/MagicMirror/commit/ca7b752025962441196e148f8c1bc04b90117979>
- other: <https://github.com/MagicMirrorOrg/MagicMirror/releases/tag/v2.37.0>
- other: <https://github.com/MagicMirrorOrg/MagicMirror>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-63640>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-q4gh-4ffp-5cg8> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-63640> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-63640>
