morgan is vulnerable to Log Injection
53
Medium Risk
Morgan is an HTTP request logger that writes token values such as the request URL, the User-Agent and Referrer headers, and the Basic authentication username into a line-oriented log stream. An earlier fix neutralized C0 control characters but left Unicode line separators such as NEL, LINE SEPARATOR, and PARAGRAPH SEPARATOR unescaped, and token values produced by custom format functions were not escaped. Because these separators are valid in ordinary HTTP requests and headers, externally influenced input can split one log record into several forged entries and inject terminal control sequences, corrupting log integrity. The fix escapes all string token output, including custom function output, and extends escaping to C1 control characters and the Unicode line separators.
You are affected if you are using a version that falls within the vulnerable range.
morgan is vulnerable to Log Injection in versions 0.0.1 - 1.11.0.
Upgrade the morgan library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.