Improper Output Neutralization for Logs Affecting github.com/tinfoil-factory/netfoil/dns package, versions <0.3.0


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Output Neutralization for Logs vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMTINFOILFACTORYNETFOILDNS-17893242
  • published8 Jul 2026
  • disclosed7 Jul 2026
  • creditstigtsp

Introduced: 7 Jul 2026

CVE NOT AVAILABLE CWE-117  (opens in a new tab)

How to fix?

Upgrade github.com/tinfoil-factory/netfoil/dns to version 0.3.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Output Neutralization for Logs via the readDomain parser in dns/dns.go. An attacker can write attacker-controlled domain labels into logs by supplying a DNS name containing disallowed characters, because the parser accepted each label and joined it into the domain string without first validating the label contents. The resulting log entries can be polluted or manipulated depending on how downstream systems consume them, which can mislead operators or break log parsing and alerting.

Notes

  • The vulnerable path is in DNS name parsing, so this only affects deployments that decode network DNS messages through readDomain; ordinary consumers that never parse attacker-supplied DNS payloads are not exposed.
  • The issue is in the domain-label handling path before logging, so any downstream log pollution depends on the application actually emitting the parsed name from this parser into its logs rather than discarding it.

CVSS Base Scores

version 4.0
version 3.1