# GHSA-5g6j-8hv4-vfgj: Cross-Site Scripting in node-red

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-11T21:21:19.000Z
- Modified: 2020-08-31T18:43:22.000Z
- Weaknesses: CWE-79

## Description

Versions of `node-red` prior to 0.18.6 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize the `name` field in new items, allowing attackers to execute arbitrary JavaScript in the victim's browser.


## Recommendation

Upgrade to version 0.18.6 or later.

(As written by GitHub Advisory Database.)

## Affected

- node-red (npm): before 0.18.6

## References

- <https://hackerone.com/reports/349146> (web)
- <https://www.npmjs.com/advisories/993> (web)

## Sources

- GitHub Advisory Database: [GHSA-5g6j-8hv4-vfgj](https://github.com/advisories/GHSA-5g6j-8hv4-vfgj), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-5g6j-8hv4-vfgj · Whole record: https://cve.day/GHSA-5g6j-8hv4-vfgj.json · Rebuilt by cve.day 2026-11-25T22:56:44.183Z
