CVE-2023-40340: Jenkins NodeJS Plugin improper credential masking vulnerability

Summary

16/08/2023
Yes i
Moderate
4.3

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback