netfoil vulnerable to improper handling of untrusted DoH response data
Published 24 Aug 2026 · Updated 26 Aug 2026
Is your project on an affected github.com/tinfoil-factory/netfoil?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <0.5.0
- Fixed in
- 0.5.0
go get github.com/tinfoil-factory/netfoil@v0.5.0Details
Summary
HTTPS RR data returned from the DoH server was not properly handled. Unverified APLN data (which could contain arbitrary byte sequences) was written directly to the log. It could also cause unnecessary memory usage. The single-byte response code was also written directly to the log.
Is GHSA-4ph6-mjv7-3fq6 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/tinfoil-factory/netfoil, and gives you the command that fixes it.
More advisories for github.com/tinfoil-factory/netfoil
- LowGO-2026-6906Netfoil doesn't decrement TTL in github.com/tinfoil-factory/netfoil · 5 Nov 2026
- MediumGHSA-9ppr-wfw9-xvr2Netfoil doesn't decrement TTL · 3 Nov 2026
- LowGO-2026-6143netfoil: Incorrect block responses could lead to localhost traffic in github.com/tinfoil-factory/netfoil · 18 Aug 2026
- HighGHSA-xvg2-cgv6-6h7vnetfoil: Incorrect block responses could lead to localhost traffic · 29 Jul 2026
- LowGO-2026-5933netfoil has a resource leak in LRU cache in github.com/tinfoil-factory/netfoil · 17 Jul 2026
- LowGO-2026-5934netfoil has a domain name filter bypass via multiple questions in github.com/tinfoil-factory/netfoil · 17 Jul 2026
References
- Linkgithub.com/tinfoil-factory/netfoil/security/advisories/GHSA-4ph6-mjv7-3fq6
- Linkgithub.com/tinfoil-factory/netfoil/commit/58cfb0cb16b824e02bf53c2d67707e5e4bd9f59b
- Linkgithub.com/tinfoil-factory/netfoil/commit/817f664c61aa64cbe0dbfcdfc05c16602b422e5b
- Packagegithub.com/tinfoil-factory/netfoil
- Linkgithub.com/tinfoil-factory/netfoil/releases/tag/v0.5.0
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.