CVE-2022-21704: log4js-node is a port of log4js to node.js
CVE-2022-21704 is a medium-severity flaw (CVSS 5.5) affecting log4js, debian linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.5 (Medium) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 78%) |
| CISA exploited list | No |
| Weakness | CWE-276 |
| Published | 2022-01-19 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-21704?
log4js: upgrade to 6.4.0; debian linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2022-21704 being exploited?
CVE-2022-21704 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-21704 affect?
CVE-2022-21704 affects log4js, debian linux. Severity is medium (CVSS 5.5). 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 sensit
How urgent is CVE-2022-21704?
Priority 30/100. On your watchlist
Software pages
Node.js vulnerabilities · Debian vulnerabilities