Live threats

All CVEs / Log4js Project

CVE-2022-21704Log4js Project Log4js

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
0.3%
probability of exploitation in 30 days · percentile 25
Auth required
Yes
Published
Jan 19, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-276
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

What happens

log4js-node is a port of log4js to node.js. In affected versions default file permissions for log files created by the file, fileSync and dateFile appenders are world-readable (in unix). This could cause problems if log files contain sensitive information. This would affect any users that have not supplied their own permissions for the files via the mode parameter in the config. Users are advised to update.

Original NVD text.

What to do

  1. Apply the vendor's security update for Log4js.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm log4js < 6.4.0 6.4.0 npm install log4js@6.4.0

Per OSV / GitHub Advisories (GHSA-82v2-mx6x-wq7q). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
log4js_projectlog4js< 6.4.0
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.