go-httpbin v2.18.0
Release Notes
๐ Security fix ๐
This release fixes a reflected XSS vulnerability (https://github.com/mccutchen/go-httpbin/security/advisories/GHSA-528q-4pgm-wvg2) in the following endpoints:
/base64/{payload}and/base64/decode/{payload}/response-headers
When a request to any of those endpoints included a content-type query parameter set to a dangerous value (e.g. ?content-type=text/html).
[!WARNING]
Potential Breaking ChangeThe affected endpoints now HTML-escape their response bodies only if the incoming request explicitly overrides the known-safe content types. The default behavior is unchanged.
If a go-httpbin deployment depends on the previous, vulnerable behavior and reflected XSS is either not a concern or there are other mitigations in place, the previous behavior may be re-enabled via the
-unsafe-allow-dangerous-responses/UNSAFE_ALLOW_DANGEROUS_RESPONSES=1configuration options.
[!IMPORTANT]
The publicly available go-httpbin instance at https://httpbingo.org has been updated and is no longer vulnerable. All users are encouraged to upgrade to v2.18.0.
๐ Thanks ๐
Many thanks to @AyushXtha for responsibly reporting the vulnerability (https://github.com/mccutchen/go-httpbin/security/advisories/GHSA-528q-4pgm-wvg2) according to go-httpbin's security policy and collaborating on the fix!
What's Changed
- doc: document ghcr as alternative to docker hub by @mccutchen in https://github.com/mccutchen/go-httpbin/pull/202
- fix(compat):
/rangesupports duration parameter by @mccutchen in https://github.com/mccutchen/go-httpbin/pull/203 - docs: add security policy by @mccutchen in https://github.com/mccutchen/go-httpbin/pull/204
- chore: update and appease linters by @mccutchen in https://github.com/mccutchen/go-httpbin/pull/205
- fix(security): prevent reflected XSS in
/response-headersand/base64endpoints by @mccutchen in 0decfd1a2e88d85ca6bfb8a92421653f647cbc04
Full Changelog: https://github.com/mccutchen/go-httpbin/compare/v2.17.1...v2.18.0