Vulnerabilities in pkg:golang/github.com/tinfoil-factory/netfoil
PACKAGEGHSA-4ph6-mjv7-3fq6 is a LOW netfoil vulnerable to improper handling vulnerability (CWE-117: Improper Output Neutralization for Logs) affecting Github.com/tinfoil factory/netfoil libraries in the Go ecosystem. The issue involves netfoil vulnerable to improper handling of untrusted doh response data. Remediation is available by upgrading affected packages to version 0.5.0.
pkg:golang/github.com/tinfoil-factory/netfoil
Vulnerability advisories affecting package pkg:golang/github.com/tinfoil-factory/netfoil. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-4ph6-mjv7-3fq6 | - | LOW | netfoil vulnerable to improper handling of untrusted DoH response data |
| GHSA-xvg2-cgv6-6h7v | - | HIGH | netfoil: Incorrect block responses could lead to localhost traffic |
| GHSA-7856-g3gv-9wq8 | - | LOW | netfoil: Attacker controlled data written to logs |
| GHSA-3g4q-2f67-2gvh | - | LOW | netfoil has a resource leak in LRU cache |
| GHSA-59qp-cfj3-rp64 | - | MODERATE | netfoil has a domain name filter bypass via multiple questions |
| GHSA-vjgj-42f6-7997 | - | MODERATE | netfoil's optional seccomp sandboxing was not applied |
| GHSA-84g5-x8j3-7235 | - | MODERATE | Netfoil has incorrect allowlist enforcement |
GHSA-4ph6-mjv7-3fq6 at a Glance
How to Fix GHSA-4ph6-mjv7-3fq6
To remediate this vulnerability, upgrade all affected Github.com/tinfoil factory/netfoil dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/tinfoil-factory/netfoil to 0.5.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/tinfoil-factory/netfoil
How to Check if You Are Affected
To determine whether your application is affected by GHSA-4ph6-mjv7-3fq6, inspect your project dependencies for Github.com/tinfoil factory/netfoil:
inspect dependencies for github.com/tinfoil-factory/netfoil
Analyze the terminal output to locate any version of Github.com/tinfoil factory/netfoil in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-117: Improper Output Neutralization for Logs, where the product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file. In Github.com/tinfoil factory/netfoil, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-4ph6-mjv7-3fq6 Affected Github.com/tinfoil factory/netfoil Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/tinfoil-factory/netfoil
|
Go |
< 0.5.0
|
0.5.0
|
References
Frequently Asked Questions
What is GHSA-4ph6-mjv7-3fq6?
Which Github.com/tinfoil factory/netfoil versions are affected?
What version fixes GHSA-4ph6-mjv7-3fq6?
Is github.com/tinfoil-factory/netfoil affected?
What CWE is associated with GHSA-4ph6-mjv7-3fq6?
How can I check Go dependencies for GHSA-4ph6-mjv7-3fq6?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4ph6-mjv7-3fq6",
"modified" : "2026-08-24T20:43:08Z",
"published" : "2026-08-24T20:43:08Z",
"aliases" : [ ],
"summary" : "netfoil vulnerable to improper handling of untrusted DoH response data",
"details" : "### Summary\nHTTPS 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/tinfoil-factory/netfoil"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/tinfoil-factory/netfoil/security/advisories/GHSA-4ph6-mjv7-3fq6"
}, {
"type" : "WEB",
"url" : "https://github.com/tinfoil-factory/netfoil/commit/58cfb0cb16b824e02bf53c2d67707e5e4bd9f59b"
}, {
"type" : "WEB",
"url" : "https://github.com/tinfoil-factory/netfoil/commit/817f664c61aa64cbe0dbfcdfc05c16602b422e5b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tinfoil-factory/netfoil"
}, {
"type" : "WEB",
"url" : "https://github.com/tinfoil-factory/netfoil/releases/tag/v0.5.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-117" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-24T20:43:08Z",
"nvd_published_at" : null
}
}