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

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-18T17:35:44.944Z
- Modified: 2026-10-22T22:10:00.250Z
- Also known as: GHSA-q4gh-4ffp-5cg8
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- MagicMirrorOrg MagicMirror: < 2.37.0
- magicmirror (npm): before 2.37.0

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/MagicMirrorOrg/MagicMirror/security/advisories/GHSA-q4gh-4ffp-5cg8> (exploit, web)
- <https://github.com/MagicMirrorOrg/MagicMirror/pull/4184> (web)
- <https://github.com/MagicMirrorOrg/MagicMirror/commit/ca7b752025962441196e148f8c1bc04b90117979> (web)
- <https://github.com/MagicMirrorOrg/MagicMirror/releases/tag/v2.37.0> (web)
- <https://github.com/MagicMirrorOrg/MagicMirror> (package)

## Sources

- CVE List: [CVE-2026-63640](https://www.cve.org/CVERecord?id=CVE-2026-63640), CVE Terms of Use, modified 2026-08-18
- GitHub Advisory Database: [GHSA-q4gh-4ffp-5cg8](https://github.com/advisories/GHSA-q4gh-4ffp-5cg8), CC-BY-4.0, modified 2026-08-18
- NVD: [CVE-2026-63640](https://nvd.nist.gov/vuln/detail/CVE-2026-63640), Public domain, modified 2026-10-22

---

Page: https://cve.day/CVE-2026-63640 · Whole record: https://cve.day/CVE-2026-63640.json · Rebuilt by cve.day 2026-11-25T22:59:33.539Z
