Property
Languagejavascript
Severitylow
CWECWE-134: Use of Externally-Controlled Format String
OWASPA01:2021 - Broken Access Control
Confidence LevelLow
Impact LevelLow
Likelihood LevelMedium

Description#

Using variables or user input as the format string in util.format or console.log can let attackers inject unexpected format specifiers, altering log messages or causing confusing output. It’s safer to use constant format strings to prevent manipulation.

Impact#

If exploited, attackers could forge or obscure log messages, making it harder to track activity or debug issues. This can hide malicious actions, hinder incident response, and reduce the trustworthiness of your application’s logs.