# CVE-2022-32171: Zinc - Stored XSS

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-4fgv-8448-gf82, GO-2023-1895
- **Published:** 2022-10-06T17:14:15.732Z
- **Modified:** 2026-06-17T04:46:48.560Z

## Who should check

- Projects that depend on Go package github.com/zincsearch/zincsearch (\>= 0.1.9, \< 0.3.2)
- Projects that depend on Go package github.com/zinclabs/zinc (\>= 0.1.9, \< 0.3.2)
- Anyone running zinc \>= v0.1.9, \< unspecified; \>= unspecified, \<= v0.3.1

## 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.

## Affected and fixed versions

- Go `github.com/zincsearch/zincsearch`: affected \>= 0.1.9, \< 0.3.2; fixed 0.3.2 (osv)
- Go `github.com/zinclabs/zinc`: affected \>= 0.1.9, \< 0.3.2; fixed 0.3.2 (osv)
- zinc: \>= v0.1.9, \< unspecified; \>= unspecified, \<= v0.3.1 (cvelist)

## Mitigation

- Upgrade github.com/zincsearch/zincsearch to 0.3.2 or later.
- Upgrade github.com/zinclabs/zinc to 0.3.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-32171. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-32171.md
Affected: github.com/zincsearch/zincsearch >= 0.1.9, < 0.3.2; github.com/zinclabs/zinc >= 0.1.9, < 0.3.2
Fixed in: 0.3.2

Steps:
1. Search this machine and project for github.com/zincsearch/zincsearch (Go), github.com/zinclabs/zinc (Go), zinc: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-32171 being exploited?

There is no confirmed exploitation: CVE-2022-32171 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-32171?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-32171?

github.com/zincsearch/zincsearch \>= 0.1.9, \< 0.3.2; github.com/zinclabs/zinc \>= 0.1.9, \< 0.3.2.

### Is there a fix for CVE-2022-32171?

Yes. Fixed in 0.3.2. Upgrade github.com/zincsearch/zincsearch to 0.3.2 or later. Upgrade github.com/zinclabs/zinc to 0.3.2 or later.

### How do I check if I'm affected by CVE-2022-32171?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-32171>
- vendor: <https://github.com/advisories/GHSA-4fgv-8448-gf82>
- patch: <https://github.com/zinclabs/zinc/commit/3376c248bade163430f9347742428f0a82cd322d>
- patch: <https://github.com/zincsearch/zincsearch/commit/3376c248bade163430f9347742428f0a82cd322d>
- other: <https://www.mend.io/vulnerability-database/CVE-2022-32171>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-32171>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-4fgv-8448-gf82> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2023-1895> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-32171> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-32171>
