{"answers":{"affected":"2 open source packages ship an affected version, including magicmirror.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-63640 exists.","fix":"Upgrade magicmirror to 2.37.0 or later.","what":"CVE-2026-63640 is a medium-severity vulnerability in MagicMirrorOrg MagicMirror, published on 18 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-63640 and fix it if it is affected.\n\nWhat it is: CVE-2026-63640 is a medium-severity vulnerability in MagicMirrorOrg MagicMirror, published on 18 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-63640 exists.\n\nAffected packages and fixed versions:\n- magicmirror (npm): affected all versions; fixed in 2.37.0\n- magicmirror (npm): affected all versions; fixed in 2.37.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-63640/ (Markdown: https://insights.sbomify.com/CVE-2026-63640/index.md)","id":"CVE-2026-63640","markdown":"https://insights.sbomify.com/CVE-2026-63640/index.md","name":"CVE-2026-63640","record":{"aliases":["GHSA-q4gh-4ffp-5cg8"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Smart mirror platform","requires_auth":"none","summary":"An attacker can disclose SECRET_* environment variables by exploiting a placeholder expansion flaw in the socket dispatcher when secret hiding is enabled.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"MagicMirror socket payload secret placeholder expansion can disclose SECRET_* environment variables","id":"CVE-2026-63640","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"MagicMirror Socket.IO module namespaces bypass configured IP whitelist and allow unauthenticated server-side actions","id":"CVE-2026-63641"},"packages":[{"ecosystem":"npm","fixed":["2.37.0"],"introduced":["0"],"last_affected":[],"package":"magicmirror","purl":null,"source":"GHSA-q4gh-4ffp-5cg8"},{"ecosystem":"npm","fixed":["2.37.0"],"introduced":["0"],"last_affected":[],"package":"magicmirror","purl":"pkg:npm/magicmirror","source":"GHSA-q4gh-4ffp-5cg8"}],"prev":{"headline":"Valkey: UAF in stream deserialization may lead to remote code execution","id":"CVE-2026-63639"},"products":["MagicMirror"],"published":"2026-08-18","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-18","vendors":["MagicMirrorOrg"]},"summary":"An attacker can disclose SECRET_* environment variables by exploiting a placeholder expansion flaw in the socket dispatcher when secret hiding is enabled.","url":"https://insights.sbomify.com/CVE-2026-63640/"}