CVE-2021-25864: Directory Traversal in node-red-contrib-huemagic 3.0.0
- Vendor
- Dgtl
A directory traversal vulnerability exists in node-red-contrib-huemagic 3.0.0 due to improper sanitization of user-supplied input in the res.sendFile API within hue-magic.js. An attacker can exploit this by sending requests containing encoded directory traversal sequences (e.g., ..%2F) to access arbitrary files on the server.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an attacker to read arbitrary files on the server, potentially exposing sensitive information such as configuration files, credentials, or other data outside the intended directory.
Mitigation
If you can’t patch tonight, do this now.
As an interim measure, restrict access to the affected API endpoints, use web server configuration to block requests containing traversal patterns, and monitor logs for suspicious activity until a patched version is deployed.
Remediation
Patch, then assume compromise.
Upgrade node-red-contrib-huemagic to a version where input to res.sendFile is properly sanitized and directory traversal sequences are blocked. Ensure all user-supplied paths are validated and restricted to intended directories.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2021-25864 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2021-25864?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2021-25864.
- Is there a patch for CVE-2021-25864?
- Upgrade node-red-contrib-huemagic to a version where input to res.sendFile is properly sanitized and directory traversal sequences are blocked. Ensure all user-supplied paths are validated and restricted to intended directories.
- What products are affected by CVE-2021-25864?
- Dgtl Huemagic.
- How severe is CVE-2021-25864?
- CVE-2021-25864 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 9.3% (96th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.