{"id":"GHSA-r32x-jhw5-g48p","aliases":["GHSA-r32x-jhw5-g48p"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in eco","summary":"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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","format":"markdown","source":"ghsa"}],"published":"2020-09-03T17:08:20.000Z","modified":"2021-09-28T21:17:47.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0","status":"affected"}],"ecosystem":"npm","package":"eco","purl":"pkg:npm/eco","source":"ghsa"}],"references":[{"url":"https://github.com/sstephenson/eco/pull/67","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sstephenson/eco","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1024","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r32x-jhw5-g48p","url":"https://github.com/advisories/GHSA-r32x-jhw5-g48p","licence":"CC-BY-4.0","modified":"2021-09-28T21:17:47.000Z"}],"updatedAt":"2026-11-25T22:56:46.379Z"}