Vulnerabilities in pkg:npm/magicmirror

PACKAGE
Advisory Identifier: GHSA-q4gh-4ffp-5cg8
Advisory Summary

CVE-2026-63640 is a MODERATE (CVSS 4.3) magicmirror socket payload secret placeholder vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Magicmirror libraries in the npm ecosystem. The issue involves magicmirror socket payload secret placeholder expansion can disclose secret_* environment variables. Remediation is available by upgrading affected packages to version 2.37.0.

5 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/magicmirror

5 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/magicmirror. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-q4gh-4ffp-5cg8 CVE-2026-63640 MODERATE MagicMirror socket payload secret placeholder expansion can disclose SECRET_* environment variables
GHSA-w6x9-28jw-hq7j CVE-2026-63643 MODERATE MagicMirror: ssrf calendar .js
GHSA-998g-7v5w-cr7g CVE-2026-63642 MODERATE MagicMirror newsfeed Socket.IO notification allows blind server-side request forgery
GHSA-w26r-fwg8-rcp3 CVE-2026-63641 LOW MagicMirror Socket.IO module namespaces bypass configured IP whitelist and allow unauthenticated server-side actions
GHSA-ph6f-2cvq-79hq CVE-2026-42281 CRITICAL MagicMirror vulnerable to unauthenticated SSRF via /cors endpoint

CVE-2026-63640 at a Glance

CVE Identifier CVE-2026-63640
GHSA Identifier GHSA-q4gh-4ffp-5cg8
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Magicmirror
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-63640

To remediate this vulnerability, upgrade all affected Magicmirror dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

magicmirror fixed: 2.37.0
npm install magicmirror@2.37.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls magicmirror

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-63640, inspect your project dependencies using npm:

npm ls magicmirror

Analyze the terminal output to locate any version of Magicmirror in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.37.0), your application is affected.

Note: The npm ls magicmirror command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Magicmirror, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary When `hideConfigSecrets: true` is enabled, MagicMirror redacts `SECRET_*` environment placeholders in the HTTP `/config` response, but the shared node-helper socket dispatcher expands `**SECRET_NAME**` placeholders in every inbound socket payload before passing it to module helpers. Any client that can connect to a loaded module namespace can send a placeholder such as `**SECRET_API_KEY**` and cause the server to substitute the real environment variable into the helper payload. Helpers that echo attacker-controlled payload fields, such as the default weather helper error path, can return the secret value to the socket client. ### Details The affected product is the npm package/application `magicmirror` at version `2.36.0`, tested at commit `fb41d24ef522e91e802e2a623ff6afbddeb3c9d8` from `https://github.com/MagicMirrorOrg/MagicMirror.git`. The secret-redaction feature is implemented during config loading: - `js/utils.js:117-123` loads a `config.env` file next to the config file into `process.env` when present. - `js/utils.js:130-151` creates both a full config and a redacted config. - `js/utils.js:137-140` redacts environment variables whose names start with `SECRET_` to `**SECRET_NAME**` in the redacted config when `hideConfigSecrets: true` is present. - `js/server.js:112-125` returns either `configObj.redactedConf` or `configObj.fullConf` from `/config` depending on `config.hideConfigSecrets`. The disclosure root cause is the inbound socket dispatcher: - `js/node_helper.js:88-103` registers a catch-all handler for each module namespace. - `js/node_helper.js:91-99` checks `config?.hideConfigSecrets` and, for every inbound object payload, runs `replaceSecretPlaceholder(JSON.stringify(payload))` before invoking `socketNotificationReceived(...)`. - `js/server_functions.js:23-34` implements `replaceSecretPlaceholder(...)` by replacing `**SECRET_* **`-style placeholders with `process.env[...]`, unless `global.config.cors === "allowAll"`. This reverses the redaction boundary: redacted placeholders intended for the browser can be sent back to the server and expanded into real environment secret values inside helper payloads. A confirmed echo path exists in the default weather helper: - `defaultmodules/weather/node_helper.js:12-19` accepts `INIT_WEATHER` from the socket. - `defaultmodules/weather/node_helper.js:27-31` copies `config.instanceId` from the attacker-controlled payload. - `defaultmodules/weather/node_helper.js:47-52` attempts to dynamically load the requested weather provider. - `defaultmodules/weather/node_helper.js:86-91` catches errors and sends `WEATHER_ERROR` with the same `instanceId` back to the namespace. False-positive screening performed: - This is not a generic environment leak through `/env`; `js/server_functions.js:221-240` returns only selected client environment paths. - The HTTP `/config` route does redact placeholders when `hideConfigSecrets: true`; the issue is that the inbound socket path expands those placeholders again before module helper code runs. - `replaceSecretPlaceholder(...)` intentionally refuses substitution when `global.config.cors === "allowAll"` (`js/server_functions.js:29-34`); the positive PoC used `cors: "disabled"`, which is the shipped default (`js/defaults.js:14`). A negative control with no substitution produced the placeholder unchanged. - The attacker must know or infer a `SECRET_*` variable name. If the attacker can read the redacted `/config` response, placeholder names may be disclosed even when values are hidden. The PoC uses a known `SECRET_MM_AUDIT` test variable. - Network reachability follows the Socket.IO exposure model. With the shipped default `address: "localhost"` and loopback `ipWhitelist`, remote network reachability is limited. In documented non-loopback deployments, this combines with the Socket.IO access-control gap described separately. Affected-version evidence: only `magicmirror@2.36.0` at commit `fb41d24ef522e91e802e2a623ff6afbddeb3c9d8` was tested. The affected range is unknown from this audit; earlier versions were not tested. No patched version or fix commit was identified locally. ### PoC The following safe local PoC was run from a clean checkout of MagicMirror at commit `fb41d24ef522e91e802e2a623ff6afbddeb3c9d8`. Because `node_modules` were not installed in this audit environment and `package.json:52` has a destructive `postinstall`, the command uses dependency stubs while executing the vulnerable repository dispatcher and weather helper code. It writes no files and does not contact external services. Positive trigger: ```bash node -e 'const Module=require("module"); const orig=Module._load; Module._load=(r,p,m)=>{ if(r==="express") return { static:()=>()=>{} }; if(r==="logger") return {log(){},error(){},warn(){},info(){},debug(){}}; if(r==="#server_functions") return {replaceSecretPlaceholder:(input)=>input.replaceAll(/\*\*(SECRET_[^*]+)\*\*/g,(_m,g)=>process.env[g])}; return orig(r,p,m); }; require("./js/alias-resolver"); global.root_path=process.cwd(); global.config={hideConfigSecrets:true,cors:"disabled"}; process.env.SECRET_MM_AUDIT="secret-marker-42"; const Weather=require("./defaultmodules/weather/node_helper"); const helper=new Weather(); helper.setName("weather"); const sent=[]; helper.sendSocketNotification=(n,p)=>sent.push({n,p}); let onAny; const fakeIo={of(){return {on(_ev,cb){const socket={onAny(fn){onAny=fn;}}; cb(socket);}};}}; helper.setSocketIO(fakeIo); Promise.resolve(onAny("INIT_WEATHER",{instanceId:"**SECRET_MM_AUDIT**",weatherProvider:"definitely-not-a-provider",type:"current"})).then(()=>setTimeout(()=>{console.log(JSON.stringify(sent));},10));' ``` Observed output: ```json [{"n":"WEATHER_ERROR","p":{"instanceId":"secret-marker-42","error":"Cannot find module '/home/sondt23/Github/Research/CVE/auto-github-cve/github-repo/MagicMirror/defaultmodules/weather/providers/definitely-not-a-provider.js'\nRequire stack:\n- /home/sondt23/Github/Research/CVE/auto-github-cve/github-repo/MagicMirror/defaultmodules/weather/node_helper.js\n- /home/sondt23/Github/Research/CVE/auto-github-cve/github-repo/MagicMirror/[eval]"}}] ``` Expected vulnerable output: the weather error payload returned by the helper contains `"instanceId":"secret-marker-42"`, proving the server substituted the `SECRET_MM_AUDIT` environment variable into an attacker-controlled socket payload and returned it to the client. Negative/control trigger simulating no inbound placeholder substitution: ```bash node -e 'const Module=require("module"); const orig=Module._load; Module._load=(r,p,m)=>{ if(r==="express") return { static:()=>()=>{} }; if(r==="logger") return {log(){},error(){},warn(){},info(){},debug(){}}; if(r==="#server_functions") return {replaceSecretPlaceholder:(input)=>input}; return orig(r,p,m); }; require("./js/alias-resolver"); global.root_path=process.cwd(); global.config={hideConfigSecrets:true,cors:"allowAll"}; process.env.SECRET_MM_AUDIT="secret-marker-42"; const Weather=require("./defaultmodules/weather/node_helper"); const helper=new Weather(); helper.setName("weather"); const sent=[]; helper.sendSocketNotification=(n,p)=>sent.push({n,p}); let onAny; const fakeIo={of(){return {on(_ev,cb){const socket={onAny(fn){onAny=fn;}}; cb(socket);}};}}; helper.setSocketIO(fakeIo); Promise.resolve(onAny("INIT_WEATHER",{instanceId:"**SECRET_MM_AUDIT**",weatherProvider:"definitely-not-a-provider",type:"current"})).then(()=>setTimeout(()=>{console.log(JSON.stringify(sent));},10));' ``` Observed control output: ```json [{"n":"WEATHER_ERROR","p":{"instanceId":"**SECRET_MM_AUDIT**","error":"Cannot find module '/home/sondt23/Github/Research/CVE/auto-github-cve/github-repo/MagicMirror/defaultmodules/weather/providers/definitely-not-a-provider.js'\nRequire stack:\n- /home/sondt23/Github/Research/CVE/auto-github-cve/github-repo/MagicMirror/defaultmodules/weather/node_helper.js\n- /home/sondt23/Github/Research/CVE/auto-github-cve/github-repo/MagicMirror/[eval]"}}] ``` Expected control output: the placeholder remains `**SECRET_MM_AUDIT**`, showing that the positive case depends on the vulnerable server-side placeholder expansion step. Final repro re-check: both the positive and negative harnesses were re-run after drafting, and the observed outputs above are from this environment. No cleanup was required. ### Impact Any client that can connect to a module Socket.IO namespace can disclose `SECRET_*` environment variables by sending known placeholder names in object payloads that are expanded by `js/node_helper.js` before helper processing. This undermines the purpose of `hideConfigSecrets: true`: secrets are hidden in the HTTP config response but can be converted back into their real values through inbound socket payloads. The confidentiality impact depends on what the deployment stores under `SECRET_*` variables. MagicMirror configurations commonly include API tokens, calendar credentials, service keys, or network allowlist values in config/environment variables. The PoC proves disclosure of a test secret through a default helper echo path. CVSS 3.1 rationale: AV:A because MagicMirror is intended for trusted local/private networks and remote exploitation requires a reachable local/private-network deployment; AC:L because once namespace access is available the attacker only needs a known or guessed `SECRET_*` name and an invalid weather provider to trigger the echo; PR:N because no application authentication is required; UI:N because the attacker sends socket messages directly; S:U because the impact is disclosure of secrets from the vulnerable application's own process environment; C:H because environment secrets can include credentials/API tokens; I:N/A:N because this report proves disclosure only. ### Suggested remediation Do not expand `SECRET_*` placeholders in inbound socket payloads. The redaction boundary should be one-way: server-to-client responses may contain placeholders, but client-to-server messages must not be treated as authority to retrieve real environment values. Concrete fixes: - Remove the `replaceSecretPlaceholder(JSON.stringify(payload))` call from `js/node_helper.js:91-99` for inbound socket payloads. - If a specific module legitimately needs secret material, resolve it only from server-loaded trusted configuration, not from client-supplied placeholders. - Keep `hideConfigSecrets` redaction for `/config`, but avoid disclosing placeholder names to clients when not necessary. - Add regression tests that set `hideConfigSecrets: true` and `SECRET_TEST=value`, send a socket payload containing `**SECRET_TEST**`, and assert that every helper receives/returns the literal placeholder rather than the secret value.

CVE-2026-63640 Affected Magicmirror Versions

1 component(s)
Fixed Versions:
2.37.0
Product / Package Ecosystem Affected Versions Fixed Version
magicmirror
npm
< 2.37.0
2.37.0

References

Frequently Asked Questions

What is CVE-2026-63640?
CVE-2026-63640 is a security vulnerability in Magicmirror involving MagicMirror socket payload secret placeholder expansion can disclose SECRET_* environment variables under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Magicmirror versions are affected?
Affected versions include releases prior to 2.37.0 across affected packages: magicmirror.
What version fixes CVE-2026-63640?
Upgrading to 2.37.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is magicmirror affected?
Yes, magicmirror is affected in releases prior to 2.37.0. Upgrade your dependency to 2.37.0 or later.
What is the CVSS score of CVE-2026-63640?
CVE-2026-63640 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-63640?
CVE-2026-63640 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check npm dependencies for CVE-2026-63640?
Run the dependency tree command: 'npm ls magicmirror'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q4gh-4ffp-5cg8",
  "modified" : "2026-08-18T18:00:16Z",
  "published" : "2026-08-18T18:00:16Z",
  "aliases" : [ "CVE-2026-63640" ],
  "summary" : "MagicMirror socket payload secret placeholder expansion can disclose SECRET_* environment variables",
  "details" : "### Summary\nWhen `hideConfigSecrets: true` is enabled, MagicMirror redacts `SECRET_*` environment placeholders in the HTTP `/config` response, but the shared node-helper socket dispatcher expands `**SECRET_NAME**` placeholders in every inbound socket payload before passing it to module helpers. Any client that can connect to a loaded module namespace can send a placeholder such as `**SECRET_API_KEY**` and cause the server to substitute the real environment variable into the helper payload. Helpers that echo attacker-controlled payload fields, such as the default weather helper error path, can return the secret value to the socket client.\n\n### Details\nThe affected product is the npm package/application `magicmirror` at version `2.36.0`, tested at commit `fb41d24ef522e91e802e2a623ff6afbddeb3c9d8` from `https://github.com/MagicMirrorOrg/MagicMirror.git`.\n\nThe secret-redaction feature is implemented during config loading:\n\n- `js/utils.js:117-123` loads a `config.env` file next to the config file into `process.env` when present.\n- `js/utils.js:130-151` creates both a full config and a redacted config.\n- `js/utils.js:137-140` redacts environment variables whose names start with `SECRET_` to `**SECRET_NAME**` in the redacted config when `hideConfigSecrets: true` is present.\n- `js/server.js:112-125` returns either `configObj.redactedConf` or `configObj.fullConf` from `/config` depending on `config.hideConfigSecrets`.\n\nThe disclosure root cause is the inbound socket dispatcher:\n\n- `js/node_helper.js:88-103` registers a catch-all handler for each module namespace.\n- `js/node_helper.js:91-99` checks `config?.hideConfigSecrets` and, for every inbound object payload, runs `replaceSecretPlaceholder(JSON.stringify(payload))` before invoking `socketNotificationReceived(...)`.\n- `js/server_functions.js:23-34` implements `replaceSecretPlaceholder(...)` by replacing `**SECRET_* **`-style placeholders with `process.env[...]`, unless `global.config.cors === \"allowAll\"`.\n\nThis reverses the redaction boundary: redacted placeholders intended for the browser can be sent back to the server and expanded into real environment secret values inside helper payloads.\n\nA confirmed echo path exists in the default weather helper:\n\n- `defaultmodules/weather/node_helper.js:12-19` accepts `INIT_WEATHER` from the socket.\n- `defaultmodules/weather/node_helper.js:27-31` copies `config.instanceId` from the attacker-controlled payload.\n- `defaultmodules/weather/node_helper.js:47-52` attempts to dynamically load the requested weather provider.\n- `defaultmodules/weather/node_helper.js:86-91` catches errors and sends `WEATHER_ERROR` with the same `instanceId` back to the namespace.\n\nFalse-positive screening performed:\n\n- This is not a generic environment leak through `/env`; `js/server_functions.js:221-240` returns only selected client environment paths.\n- The HTTP `/config` route does redact placeholders when `hideConfigSecrets: true`; the issue is that the inbound socket path expands those placeholders again before module helper code runs.\n- `replaceSecretPlaceholder(...)` intentionally refuses substitution when `global.config.cors === \"allowAll\"` (`js/server_functions.js:29-34`); the positive PoC used `cors: \"disabled\"`, which is the shipped default (`js/defaults.js:14`). A negative control with no substitution produced the placeholder unchanged.\n- The attacker must know or infer a `SECRET_*` variable name. If the attacker can read the redacted `/config` response, placeholder names may be disclosed even when values are hidden. The PoC uses a known `SECRET_MM_AUDIT` test variable.\n- Network reachability follows the Socket.IO exposure model. With the shipped default `address: \"localhost\"` and loopback `ipWhitelist`, remote network reachability is limited. In documented non-loopback deployments, this combines with the Socket.IO access-control gap described separately.\n\nAffected-version evidence: only `magicmirror@2.36.0` at commit `fb41d24ef522e91e802e2a623ff6afbddeb3c9d8` was tested. The affected range is unknown from this audit; earlier versions were not tested. No patched version or fix commit was identified locally.\n\n### PoC\nThe following safe local PoC was run from a clean checkout of MagicMirror at commit `fb41d24ef522e91e802e2a623ff6afbddeb3c9d8`. Because `node_modules` were not installed in this audit environment and `package.json:52` has a destructive `postinstall`, the command uses dependency stubs while executing the vulnerable repository dispatcher and weather helper code. It writes no files and does not contact external services.\n\nPositive trigger:\n\n```bash\nnode -e 'const Module=require(\"module\"); const orig=Module._load; Module._load=(r,p,m)=>{ if(r===\"express\") return { static:()=>()=>{} }; if(r===\"logger\") return {log(){},error(){},warn(){},info(){},debug(){}}; if(r===\"#server_functions\") return {replaceSecretPlaceholder:(input)=>input.replaceAll(/\\*\\*(SECRET_[^*]+)\\*\\*/g,(_m,g)=>process.env[g])}; return orig(r,p,m); }; require(\"./js/alias-resolver\"); global.root_path=process.cwd(); global.config={hideConfigSecrets:true,cors:\"disabled\"}; process.env.SECRET_MM_AUDIT=\"secret-marker-42\"; const Weather=require(\"./defaultmodules/weather/node_helper\"); const helper=new Weather(); helper.setName(\"weather\"); const sent=[]; helper.sendSocketNotification=(n,p)=>sent.push({n,p}); let onAny; const fakeIo={of(){return {on(_ev,cb){const socket={onAny(fn){onAny=fn;}}; cb(socket);}};}}; helper.setSocketIO(fakeIo); Promise.resolve(onAny(\"INIT_WEATHER\",{instanceId:\"**SECRET_MM_AUDIT**\",weatherProvider:\"definitely-not-a-provider\",type:\"current\"})).then(()=>setTimeout(()=>{console.log(JSON.stringify(sent));},10));'\n```\n\nObserved output:\n\n```json\n[{\"n\":\"WEATHER_ERROR\",\"p\":{\"instanceId\":\"secret-marker-42\",\"error\":\"Cannot find module '/home/sondt23/Github/Research/CVE/auto-github-cve/github-repo/MagicMirror/defaultmodules/weather/providers/definitely-not-a-provider.js'\\nRequire stack:\\n- /home/sondt23/Github/Research/CVE/auto-github-cve/github-repo/MagicMirror/defaultmodules/weather/node_helper.js\\n- /home/sondt23/Github/Research/CVE/auto-github-cve/github-repo/MagicMirror/[eval]\"}}]\n```\n\nExpected vulnerable output: the weather error payload returned by the helper contains `\"instanceId\":\"secret-marker-42\"`, proving the server substituted the `SECRET_MM_AUDIT` environment variable into an attacker-controlled socket payload and returned it to the client.\n\nNegative/control trigger simulating no inbound placeholder substitution:\n\n```bash\nnode -e 'const Module=require(\"module\"); const orig=Module._load; Module._load=(r,p,m)=>{ if(r===\"express\") return { static:()=>()=>{} }; if(r===\"logger\") return {log(){},error(){},warn(){},info(){},debug(){}}; if(r===\"#server_functions\") return {replaceSecretPlaceholder:(input)=>input}; return orig(r,p,m); }; require(\"./js/alias-resolver\"); global.root_path=process.cwd(); global.config={hideConfigSecrets:true,cors:\"allowAll\"}; process.env.SECRET_MM_AUDIT=\"secret-marker-42\"; const Weather=require(\"./defaultmodules/weather/node_helper\"); const helper=new Weather(); helper.setName(\"weather\"); const sent=[]; helper.sendSocketNotification=(n,p)=>sent.push({n,p}); let onAny; const fakeIo={of(){return {on(_ev,cb){const socket={onAny(fn){onAny=fn;}}; cb(socket);}};}}; helper.setSocketIO(fakeIo); Promise.resolve(onAny(\"INIT_WEATHER\",{instanceId:\"**SECRET_MM_AUDIT**\",weatherProvider:\"definitely-not-a-provider\",type:\"current\"})).then(()=>setTimeout(()=>{console.log(JSON.stringify(sent));},10));'\n```\n\nObserved control output:\n\n```json\n[{\"n\":\"WEATHER_ERROR\",\"p\":{\"instanceId\":\"**SECRET_MM_AUDIT**\",\"error\":\"Cannot find module '/home/sondt23/Github/Research/CVE/auto-github-cve/github-repo/MagicMirror/defaultmodules/weather/providers/definitely-not-a-provider.js'\\nRequire stack:\\n- /home/sondt23/Github/Research/CVE/auto-github-cve/github-repo/MagicMirror/defaultmodules/weather/node_helper.js\\n- /home/sondt23/Github/Research/CVE/auto-github-cve/github-repo/MagicMirror/[eval]\"}}]\n```\n\nExpected control output: the placeholder remains `**SECRET_MM_AUDIT**`, showing that the positive case depends on the vulnerable server-side placeholder expansion step.\n\nFinal repro re-check: both the positive and negative harnesses were re-run after drafting, and the observed outputs above are from this environment. No cleanup was required.\n\n### Impact\nAny client that can connect to a module Socket.IO namespace can disclose `SECRET_*` environment variables by sending known placeholder names in object payloads that are expanded by `js/node_helper.js` before helper processing. This undermines the purpose of `hideConfigSecrets: true`: secrets are hidden in the HTTP config response but can be converted back into their real values through inbound socket payloads.\n\nThe confidentiality impact depends on what the deployment stores under `SECRET_*` variables. MagicMirror configurations commonly include API tokens, calendar credentials, service keys, or network allowlist values in config/environment variables. The PoC proves disclosure of a test secret through a default helper echo path.\n\nCVSS 3.1 rationale: AV:A because MagicMirror is intended for trusted local/private networks and remote exploitation requires a reachable local/private-network deployment; AC:L because once namespace access is available the attacker only needs a known or guessed `SECRET_*` name and an invalid weather provider to trigger the echo; PR:N because no application authentication is required; UI:N because the attacker sends socket messages directly; S:U because the impact is disclosure of secrets from the vulnerable application's own process environment; C:H because environment secrets can include credentials/API tokens; I:N/A:N because this report proves disclosure only.\n\n### Suggested remediation\nDo not expand `SECRET_*` placeholders in inbound socket payloads. The redaction boundary should be one-way: server-to-client responses may contain placeholders, but client-to-server messages must not be treated as authority to retrieve real environment values.\n\nConcrete fixes:\n\n- Remove the `replaceSecretPlaceholder(JSON.stringify(payload))` call from `js/node_helper.js:91-99` for inbound socket payloads.\n- If a specific module legitimately needs secret material, resolve it only from server-loaded trusted configuration, not from client-supplied placeholders.\n- Keep `hideConfigSecrets` redaction for `/config`, but avoid disclosing placeholder names to clients when not necessary.\n- Add regression tests that set `hideConfigSecrets: true` and `SECRET_TEST=value`, send a socket payload containing `**SECRET_TEST**`, and assert that every helper receives/returns the literal placeholder rather than the secret value.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "magicmirror"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.37.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/MagicMirrorOrg/MagicMirror/security/advisories/GHSA-q4gh-4ffp-5cg8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/MagicMirrorOrg/MagicMirror/pull/4184"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/MagicMirrorOrg/MagicMirror/commit/ca7b752025962441196e148f8c1bc04b90117979"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/MagicMirrorOrg/MagicMirror"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/MagicMirrorOrg/MagicMirror/releases/tag/v2.37.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-18T18:00:16Z",
    "nvd_published_at" : null
  }
}