MagicMirror socket payload secret placeholder expansion can disclose SECRET_* environment variables
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-63640
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 21:30 UTC · Revision 1
Source evidence
MagicMirror socket payload secret placeholder expansion can disclose SECRET_* environment variables
core-osv · Original sourcePublished 18 Aug 2026, 17:35 UTC
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.
osv:CVE-2026-63640
Complete source record
{
"id": "e61bc45afc70b7e9dec98d3234a8a0244f9f44242583b016899fdf98c86aa2a9",
"url": "https://osv.dev/vulnerability/CVE-2026-63640",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "MagicMirror socket payload secret placeholder expansion can disclose SECRET_* environment variables",
"summary": "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.",
"evidence": "osv:CVE-2026-63640",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-63640",
"aliases": [
"CVE-2026-63640",
"GHSA-q4gh-4ffp-5cg8"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/magicmirrororg/magicmirror",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "4b4a59534f7da01e4030e46029fe9dd649a7675e"
},
{
"fixed": "ca7b752025962441196e148f8c1bc04b90117979"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.37.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "ca7b752025962441196e148f8c1bc04b90117979"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "4b4a59534f7da01e4030e46029fe9dd649a7675e"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.37.0"
}
]
}
}
],
"versions": [
"v2.36.0",
"v2.35.0",
"v2.34.0",
"v2.33.0",
"v2.32.0",
"v2.31.0",
"v2.30.0",
"v2.29.0",
"v2.28.0",
"v2.27.0",
"v2.26.0",
"v2.25.0",
"v2.24.0",
"v2.23.0",
"v2.22.0",
"v2.21.0",
"v2.20.0",
"v2.19.0",
"v2.18.0",
"v2.17.1",
"v2.17.0",
"v2.16.0",
"v2.15.0",
"v2.14.0",
"v2.13.0",
"v2.12.0",
"v2.11.0",
"v2.10.1",
"v2.10.0",
"v2.9.0",
"v2.8.0",
"v2.7.1",
"v2.6.0",
"v2.7.0",
"v2.5.0",
"v2.2.2",
"v2.4.1",
"v2.4.0",
"v2.3.1",
"v2.3.0",
"v2.2.1",
"V2.2.1",
"v2.2.0",
"v2.1.3",
"v.2.1.3",
"v2.1.2",
"v2.1.1",
"v2.1.0",
"v2.0.5",
"v2.0.4",
"v2.0.3",
"v2.0.2",
"v2.0.1",
"v2.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63640.json"
}
}
],
"modified": "2026-10-28T02:30:39.712115932Z",
"provider": "osv",
"references": [
"https://github.com/MagicMirrorOrg/MagicMirror/releases/tag/v2.37.0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63640.json",
"https://github.com/MagicMirrorOrg/MagicMirror/security/advisories/GHSA-q4gh-4ffp-5cg8",
"https://nvd.nist.gov/vuln/detail/CVE-2026-63640",
"https://github.com/MagicMirrorOrg/MagicMirror/commit/ca7b752025962441196e148f8c1bc04b90117979",
"https://github.com/MagicMirrorOrg/MagicMirror/pull/4184"
],
"provider_metadata": {
"cwe_ids": [
"CWE-200"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63640.json"
}
},
"related_cves": [
{
"value": "CVE-2026-63640",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 507290,
"published_at": "2026-08-18T17:35:44.944+00:00"
}