LogTape security updates: 1.3.11, 2.0.14, and 2.1.5 #177
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.
Uh oh!
There was an error while loading. Please reload this page.
-
If you use
@logtape/syslog, update to a patched release now. CVE-2026-54511 affects structured data formatting in the syslog sink whenincludeStructuredDatais enabled. This option is off by default, but deployments that enable it and include attacker-controlled log properties could emit syslog messages that downstream collectors treat as forged records.The vulnerable code is in
escapeStructuredDataValue()in packages/syslog/src/syslog.ts. It escaped\,", and]for RFC 5424 structured data values, but it did not neutralize newline, carriage return, NUL, or other C0 control characters. TCP syslog deployments commonly use newline-delimited framing. If a structured data value contained a literal newline followed by bytes that look like an RFC 5424 header, a downstream collector could accept the second line as a separate syslog record.There was a second formatting issue in the same structured data path. Structured data parameter keys were inserted without checking the RFC 5424
SD-NAMEgrammar. Developer-defined property names are usually safe, but applications sometimes forward request headers or arbitrary metadata as log properties. In that case, keys containing spaces,=,",], control characters, or overlength names could produce malformed structured data.The fix changes
@logtape/syslogto replace C0 control characters in structured data values with printable#NNNsequences before the syslog message is built. It also skips log properties whose keys are not validSD-NAMEvalues, which means 1 to 32 printable US-ASCII characters excluding space,=,], and".Current patched releases are 1.3.11, 2.0.14, and 2.1.5. The GitHub Security Advisory is GHSA-8h6h-x5pq-56fq, and the CVE ID is CVE-2026-54511.
Update
@logtape/syslog:After updating, redeploy any service that sends logs through the syslog sink. If you do not use
@logtape/syslog, or if you use it withoutincludeStructuredData, this issue does not affect that logging path.Thanks to the reporter for responsible disclosure.
If anything is unclear, ask below.
Beta Was this translation helpful? Give feedback.
All reactions