Description
LogTape is an unobtrusive logging library. Prior to 1.3.11, 2.0.14, and 2.1.5, the @logtape/syslog package's escapeStructuredDataValue() function in packages/syslog/src/syslog.ts does not neutralize C0 control characters from U+0000 through U+001F in structured data values, and formatStructuredData() inserts property keys without validating the RFC 5424 SD-NAME grammar. When includeStructuredData is true, an attacker-controlled newline can terminate an RFC 6587 non-transparent TCP syslog frame and make following bytes appear as a forged RFC 5424 record, while a key containing a closing bracket or other forbidden character can terminate or corrupt the structured-data element. Applications that forward attacker-controlled property values or keys can therefore allow forged records with arbitrary hosts, applications, process identifiers, facilities, or severity levels, undermining downstream collector and SIEM integrity. This issue is fixed in versions 1.3.11, 2.0.14, and 2.1.5.
Published: 2026-08-26
Score: 8.6 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability exists in the @logtape/syslog logging library prior to specific releases. The escapeStructuredDataValue() function fails to neutralize C0 control characters (U+0000 through U+001F) in structured data values and the formatStructuredData() function accepts property keys without validating the RFC 5424 SD‑NAME grammar. An attacker able to supply such values through includeStructuredData can terminate an RFC 6587 syslog frame with an injected newline and craft a forged RFC 5424 record. The forged message can carry arbitrary host, application, process identifier, facility, or severity levels, thereby compromising the integrity of downstream collectors and SIEM systems. This weakness corresponds to CWE‑117 (Improper Output Neutralization for Log File) and CWE‑93 (Improper Handling of Control Characters), representing improper output neutralization and control‑character handling.

Affected Systems

The affected product is @logtape/syslog from the dahlia organization. Versions prior to 1.3.11, 2.0.14, and 2.1.5 are vulnerable. Any project that imports logtape/syslog or references the same located package is impacted until the specified releases are applied.

Risk and Exploitability

The CVSS score of 8.6 classifies this as high severity; the EPSS score is not available, and the vulnerability is not yet listed in the CISA KEV catalogue. The likely attack vector is remote exploitation through a syslog client that forwards structured data to a vulnerable application, either directly or via a compromised service that accepts syslog frames. If an attacker can control the structured‑data key or value, they can forge log entries that appear legitimate to collectors, potentially leading to unauthorized influence over log‑based monitoring and alerting.

Generated by OpenCVE AI on August 26, 2026 at 16:18 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the @logtape/syslog package to version 1.3.11, 2.0.14, or 2.1.5 or later.
  • If the upgrade cannot be performed immediately, disable structured data logging by setting includeStructuredData to false or avoid sending untrusted data in that field.
  • Validate or sanitize all structured‑data keys and values before passing them to the logger to ensure they conform to RFC 5424 SD‑NAME syntax and contain no control characters.

Generated by OpenCVE AI on August 26, 2026 at 16:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-8h6h-x5pq-56fq @logtape/syslog: syslog log injection via unescaped control characters and unvalidated SD-NAME keys
History

Wed, 26 Aug 2026 14:45:00 +0000

Type Values Removed Values Added
Description LogTape is an unobtrusive logging library. Prior to 1.3.11, 2.0.14, and 2.1.5, the @logtape/syslog package's escapeStructuredDataValue() function in packages/syslog/src/syslog.ts does not neutralize C0 control characters from U+0000 through U+001F in structured data values, and formatStructuredData() inserts property keys without validating the RFC 5424 SD-NAME grammar. When includeStructuredData is true, an attacker-controlled newline can terminate an RFC 6587 non-transparent TCP syslog frame and make following bytes appear as a forged RFC 5424 record, while a key containing a closing bracket or other forbidden character can terminate or corrupt the structured-data element. Applications that forward attacker-controlled property values or keys can therefore allow forged records with arbitrary hosts, applications, process identifiers, facilities, or severity levels, undermining downstream collector and SIEM integrity. This issue is fixed in versions 1.3.11, 2.0.14, and 2.1.5.
Title @logtape/syslog: syslog log injection via unescaped control characters and unvalidated SD-NAME keys
Weaknesses CWE-117
CWE-93
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-26T14:27:27.910Z

Reserved: 2026-06-15T18:01:15.513Z

Link: CVE-2026-54511

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-26T15:16:48.727

Modified: 2026-08-26T15:16:48.727

Link: CVE-2026-54511

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-26T16:30:09Z

Weaknesses
  • CWE-117

    Improper Output Neutralization for Logs

  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')