CVE-2026-42281 MagicMirror²: Unauthenticated SSRF via /cors endpoint

Critical 9.2 Published Updated

Unauthenticated attackers can force the server to make arbitrary HTTP requests and exfiltrate secrets via environment variable expansion in the /cors endpoint.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-42281?

CVE-2026-42281 is a critical server-side request forgery vulnerability in MagicMirrorOrg MagicMirror, published on 14 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

MagicMirror² is an open source modular smart mirror platform. Prior to 2.36.0, an unauthenticated Server-Side Request Forgery (SSRF) vulnerability in the /cors endpoint allows any remote attacker to force the MagicMirror² server to perform arbitrary HTTP requests to internal networks, cloud metadata services, and localhost services. The endpoint also expands environment variable placeholders (**VAR_NAME**), enabling exfiltration of server-side secrets. This vulnerability is fixed in 2.36.0.

Weakness: CWE-918

Which versions are affected by CVE-2026-42281?

2 open source packages ship an affected version, including magicmirror. It affects 1 product.

PackageAffectedFixed in
magicmirror npmAll versions2.36.0
magicmirror npmAll versions2.36.0

Products include Magicmirror Magicmirror.

How do I fix CVE-2026-42281?

Upgrade magicmirror to 2.36.0 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-42281 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42281 exists.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

Sources

Also known as GHSA-ph6f-2cvq-79hq.

Is CVE-2026-42281 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free