ADVISORIES

Vulnerability

CVE-2022-21704

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.

5 advisories report this vulnerability, across 4 ecosystems.

Advisories

  • AZL-45261

    CVE-2022-21704 affecting package js-jquery 3.5.0-4

    CVE-2022-21704 Azure Linux Updated 23 November 2026
  • DEBIAN-CVE-2022-21704

    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…

    CVE-2022-21704 Debian Updated 20 November 2026
  • DLA-3229-1

    node-log4js - security update

    CVE-2022-21704 Debian Updated 20 November 2026
  • GHSA-82v2-mx6x-wq7q

    Incorrect Default Permissions in log4js

    Moderate CVE-2022-21704 npm Updated 8 November 2023
  • UBUNTU-CVE-2022-21704

    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…

    CVE-2022-21704 Ubuntu Updated 24 October 2025

References