# GHSA-r32x-jhw5-g48p: Cross-Site Scripting in eco

- 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-03T17:08:20.000Z
- Modified: 2021-09-28T21:17:47.000Z
- Weaknesses: CWE-79

## Description

All versions of  `eco` are vulnerable to Cross-Site Scripting (XSS). The package's default `__escape` implementation fails to escape single quotes, which may allow attackers to execute arbitrary JavaScript on the victim's browser.


## Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

(As written by GitHub Advisory Database.)

## Affected

- eco (npm): from 0.0.0

## References

- <https://github.com/sstephenson/eco/pull/67> (web)
- <https://github.com/sstephenson/eco> (package)
- <https://www.npmjs.com/advisories/1024> (web)

## Sources

- GitHub Advisory Database: [GHSA-r32x-jhw5-g48p](https://github.com/advisories/GHSA-r32x-jhw5-g48p), CC-BY-4.0, modified 2021-09-28

---

Page: https://cve.day/GHSA-r32x-jhw5-g48p · Whole record: https://cve.day/GHSA-r32x-jhw5-g48p.json · Rebuilt by cve.day 2026-11-25T22:56:46.379Z
