CVE-2023-40340: Jenkins NodeJS Plugin improper credential masking vulnerability
Summary
CVE-2023-40340: Jenkins NodeJS Plugin improper credential masking vulnerability. Affects org.jenkins-ci.plugins:nodejs versions < 1.6.1. Fixed in 1.6.1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Jenkins NodeJS Plugin is a plugin for the Jenkins automation server that allows users to execute Node.js scripts as part of their build process. It integrates with the Config File Provider Plugin to specify custom NPM settings, including credentials for authentication, in a Npm config file.
Vulnerability Detail
The NodeJS Plugin version 1.6.0 and earlier has an improper credential masking vulnerability. When using the plugin in a Pipeline build, credentials specified in the Npm config file are not properly masked in the build logs. This means that sensitive information, such as authentication credentials, can be exposed to users with access to the build logs. However, NodeJS Plugin version 1.6.0.1 has fixed this issue by correctly masking the credentials in the build logs.
How To Fix
Minimum fixed version
1.6.1
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
The Jenkins NodeJS Plugin version 1.6.0 and earlier has an improper credential masking vulnerability that can expose sensitive information in the build logs. Users should upgrade to version 1.6.0.1 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.jenkins-ci.plugins:nodejs →
FAQ
This vulnerability can expose sensitive information, such as authentication credentials, to users with access to the build logs.
You can check the version of the NodeJS Plugin installed in your Jenkins installation. If it is version 1.6.0 or earlier, your installation is affected.
There are no known exploits for this vulnerability at this time.
No, manual masking of the credentials in the build logs is not recommended. It is best to upgrade to the fixed version of the NodeJS Plugin.
No, the only recommended solution is to upgrade to the fixed version of the NodeJS Plugin.