Vulnerability DatabaseGHSA-2qxc-5xj9-7342

GHSA-2qxc-5xj9-7342: 
JavaScript vulnerability analysis and mitigation

Summary

@logtape/syslog writes the appName, syslogHostname, and processId options into the RFC 5424 header without validating them. It also writes structuredDataId without validation when structured data is enabled and there are properties to include. These are configuration options set when getSyslogSink() is called. Ordinary log messages and record properties do not set these options.

Impact

If an application supplies untrusted values for these options, the sink can emit malformed syslog records. With newline-delimited TCP transport, this can also allow forged records to reach the collector, compromising log integrity. The default transport is UDP. The report demonstrated record forgery in a TCP test on npm version 2.4.2 by supplying the affected options directly. We reviewed the 2.4.2 source and the documented integrations and found no path from ordinary log input to these options. If syslogHostname is not set, the sink uses the system hostname, with a process-environment fallback if the system lookup throws. These defaults do not read from log records. The TCP connection sends records to the collector; it is not an input path to the sink. Any path from a less-trusted caller to these settings depends on how the application or deployment supplies them.

Severity assessment

CVSS v3.1: 2.3 (Low), based on a local configuration scenario. This assessment assumes the attacker already has permission to edit the application's sink configuration, but cannot directly write to the receiving log stream. Once those settings are in use, the formatting behavior is deterministic and no separate user action is needed. The score reflects a limited loss of integrity in the application's own log stream under the same security authority. It does not assume a confidentiality impact, an availability impact, or an effect on other applications' logs. This assessment does not establish that every affected deployment requires local configuration access. An integration that exposes these options to less-privileged users may warrant a different score.

Affected versions

The affected stable releases of @logtape/syslog on npm and JSR are 0.12.0 through 2.4.2, inclusive. Fixed releases are 2.0.30, 2.1.21, 2.2.17, 2.3.14, and 2.4.3.

Mitigation

Use trusted, RFC 5424-compliant values for these options. If an integration derives them from untrusted input, validate them before calling getSyslogSink(). A package-level fix should enforce the RFC 5424 character and length constraints for each field.

GHSA-rjxr-25gw-qw92 covers the message body, and GHSA-8h6h-x5pq-56fq covers structured data parameter names. Neither fix validates the configuration options described here.


Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-3qjc-mqvq-rch9HIGH7.6
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026
GHSA-j4pj-2xg4-35f6HIGH7.4
  • JavaScript logoJavaScript
  • @mikro-orm/mariadb
NoYesNov 27, 2026
GHSA-vrvp-5qx2-7xcmMEDIUM6.5
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026
GHSA-9phx-3fcw-32vfLOW3.7
  • JavaScript logoJavaScript
  • saxen
NoYesNov 27, 2026
GHSA-288x-p79m-78v5LOW3.7
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management