Repository navigation
LogTape security updates: 2.0.30, 2.1.21, 2.2.17, 2.3.14, and 2.4.3 #276
dahlia
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
If you use @logtape/redaction, @logtape/syslog, or @logtape/otel, update the packages you use. These updates fix missed redaction in structured values (GHSA-f9j8-mv7v-85gr), invalid syslog fields (GHSA-2qxc-5xj9-7342), and an upstream OpenTelemetry dependency affected by CVE-2026-54285.
The fixes first shipped in 2.0.30, 2.1.21, 2.2.17, 2.3.14, and 2.4.3 on npm and JSR. The security policy covers the latest two minor lines, so use 2.4.3 or 2.3.14. If you are still on an older line, plan to move to a supported line.
Sensitive data missed by redaction
GHSA-f9j8-mv7v-85gr affects @logtape/redaction 1.3.5 through 2.4.2 on npm and JSR. Sensitive data could remain in logs when it was inside an
Error,Map, orSet, even if the application's redaction rules would have caught it in an ordinary object.Field-based redaction now checks error properties and string keys in maps, and looks for named fields inside map values and set members. It still does not scan free-form strings such as error messages. Use pattern-based redaction for those strings. Redacted copies of structured errors retain diagnostics such as the message and cause, but omit the original stack frames. Updating does not remove sensitive data already written to logs; review access to retained logs and rotate any credentials you find exposed.
Invalid syslog header fields and structured data IDs
GHSA-2qxc-5xj9-7342 affects @logtape/syslog 0.12.0 through 2.4.2 on npm and JSR. The issue requires untrusted values to reach the sink's
appName,syslogHostname,processId, or, when structured data is enabled,structuredDataIdoption. Ordinary log message text does not set those options. Invalid values can produce malformed records, and a newline-delimited TCP collector can accept a forged record. UDP, the default transport, does not have that frame-splitting risk.The sink now substitutes the RFC 5424 nil value (
-) for invalid header fields and leaves out the structured data block when its ID is invalid. In both cases the log message is still sent.OpenTelemetry baggage propagation
CVE-2026-54285 is in OpenTelemetry JavaScript, not LogTape. Earlier @logtape/otel dependency ranges pulled in an affected @opentelemetry/core. Applications are exposed when they use an affected Core version to extract untrusted W3C Baggage without an effective input size limit. Exporting logs through the LogTape sink does not itself extract incoming baggage.
The patch releases move the sink to the OpenTelemetry Logs SDK and exporters on the
0.219.xline, which uses the fixed Core version, 2.8.0. If your application also brings in OpenTelemetry separately, check the version used by the baggage propagator; updating the LogTape sink does not update a separately pinned dependency.Updating
Set
versionto2.4.3or2.3.14. Run the command for your package manager with each affected package your application already uses, replacingredactionwithsyslogorotelas needed.If your installed @logtape/logtape does not meet the updated package's peer dependency, update it too. Check the resolved versions in your lockfile and redeploy services that use the affected packages.
Thanks to @eliteaja11-dev for reporting the redaction issue, @lanjianchun for reporting the syslog issue, @tonghuaroot for reporting the baggage issue to OpenTelemetry, and @HardMax71 for flagging the affected dependency in LogTape (#266).
If anything is unclear, ask below.
All reactions