# CVE-2022-21704: node-log4js: log4js-node is a port of log4js to node.js

CVE-2022-21704 is fixed in node-log4js on 1 platform, first by DEBIAN-CVE-2022-21704, released January 19, 2022. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2022-21704
- Priority: Routine
- CVSS: 5.5 (medium)
- EPSS: 0.0030
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jan 19, 2022

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | node-log4js Debian 12.15 (bookworm) | 6.4.1+~cs8.3.5-1 | [DEBIAN-CVE-2022-21704](https://patchblox.com/security/data/fix/linux/debian-cve-2022-21704.md) | Jan 19, 2022 |
| Linux | node-log4js Debian 13.5 (trixie) | 6.4.1+~cs8.3.5-1 | [DEBIAN-CVE-2022-21704](https://patchblox.com/security/data/fix/linux/debian-cve-2022-21704.md) | Jan 19, 2022 |
| Linux | node-log4js Debian 14 | 6.4.1+~cs8.3.5-1 | [DEBIAN-CVE-2022-21704](https://patchblox.com/security/data/fix/linux/debian-cve-2022-21704.md) | Jan 19, 2022 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
