Intel

AIKIDO-2025-10947

github.com/labstack/echo/v4 is vulnerable to Improper Output Neutralization for Logs

Improper Output Neutralization for Logs Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 15, 2025

42

Medium Risk

This Affects:

GOgithub.com/labstack/echo/v4
4.0.0 - 4.13.4
Fixed in 4.14.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to JSON Log Injection via a Missing Character Escape in the logger middleware, where user-supplied input in HTTP requests is not properly escaped before being written to JSON-formatted logs. An attacker can exploit this by crafting malicious query parameters containing JSON special characters, such as commas and quotes, to inject arbitrary fields into the log output, falsifying log data by overwriting critical fields like method and remote_ip or by deliberately corrupting the JSON structure to disrupt log processing systems.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

github.com/labstack/echo/v4 is vulnerable to Improper Output Neutralization for Logs in versions 4.0.0 - 4.13.4.

How to fix this

Upgrade the github.com/labstack/echo/v4 library to the patch version.