Vulnerability library
Security checkJanuary 24, 2024

Incorrect Default Permissions in log4js

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmlog4js

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the log4js package to the latest compatible version. Followings are version details:

  • Affected version(s): < 6.4.0
  • Patched version(s): 6.4.0

References

Could your website be exposed too?

SmartScanner can check your website for Incorrect Default Permissions in log4js and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 24, 2024