# CVE-2021-25864: Path Traversal in node-red-contrib-huemagic

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 9.33%, higher than 95% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-01-26T07:09:07.000Z
- Modified: 2026-06-17T03:42:31.547Z
- Also known as: GHSA-frpw-jrwx-hcfv
- Weaknesses: CWE-22
- Assigned by: mitre

## Description

node-red-contrib-huemagic 3.0.0 is affected by hue/assets/..%2F Directory Traversal.in the res.sendFile API, used in file hue-magic.js, to fetch an arbitrary file.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- node-red-contrib-huemagic (npm): up to 3.0.0
- dgtl huemagic: 3.0.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/Foddy/node-red-contrib-huemagic/issues/217> (exploit, mitigation, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25864> (advisory)
- <https://github.com/Foddy/node-red-contrib-huemagic> (package)

## Sources

- CVE List: [CVE-2021-25864](https://www.cve.org/CVERecord?id=CVE-2021-25864), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-frpw-jrwx-hcfv](https://github.com/advisories/GHSA-frpw-jrwx-hcfv), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-25864](https://nvd.nist.gov/vuln/detail/CVE-2021-25864), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-25864 · Whole record: https://cve.day/CVE-2021-25864.json · Rebuilt by cve.day 2026-11-25T22:57:59.723Z
