CVE-2023-51839: @devicefarmer/stf DeviceFarmer Stf Uses DES-ECB Vulnerability
CRITICALCVE-2023-51839 is a CRITICAL (CVSS 9.1) devicefarmer stf uses des-ecb vulnerability (CWE-327: Use of a Broken or Risky Cryptographic Algorithm) affecting @devicefarmer/stf libraries in the npm ecosystem. The issue involves devicefarmer stf uses des-ecb. Remediation is available in the latest vendor maintenance releases.
CVE-2023-51839 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2023-51839
To remediate this vulnerability, upgrade all affected @devicefarmer/stf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @devicefarmer/stf@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @devicefarmer/stf
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2023-51839, inspect your project dependencies using npm:
npm ls @devicefarmer/stf
Analyze the terminal output to locate any version of @devicefarmer/stf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls @devicefarmer/stf command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-327: Use of a Broken or Risky Cryptographic Algorithm, where the product uses a broken or risky cryptographic algorithm or protocol. In @devicefarmer/stf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-51839 Affected @devicefarmer/stf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@devicefarmer/stf
|
npm |
≤ 3.6.6
|
|
References
Frequently Asked Questions
What is CVE-2023-51839?
Which @devicefarmer/stf versions are affected?
What version fixes CVE-2023-51839?
Is @devicefarmer/stf affected?
What is the CVSS score of CVE-2023-51839?
What CWE is associated with CVE-2023-51839?
How can I check npm dependencies for CVE-2023-51839?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7xm8-wjq7-88r5",
"modified" : "2024-02-06T20:29:19Z",
"published" : "2024-01-29T21:30:27Z",
"aliases" : [ "CVE-2023-51839" ],
"summary" : "DeviceFarmer stf uses DES-ECB",
"details" : "DeviceFarmer stf v3.6.6 suffers from Use of a Broken or Risky Cryptographic Algorithm.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@devicefarmer/stf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "3.6.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-51839"
}, {
"type" : "WEB",
"url" : "https://github.com/DeviceFarmer/stf/issues/736"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/DeviceFarmer/stf"
}, {
"type" : "WEB",
"url" : "https://github.com/DeviceFarmer/stf/blob/a6b5f18941d0de5929f9c24c3ce3e9c13317a653/lib/util/vncauth.js#L35"
}, {
"type" : "WEB",
"url" : "https://github.com/tianjk99/Cryptographic-Misuses/blob/main/CVE-2023-51839.md"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-327" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-06T20:29:19Z",
"nvd_published_at" : "2024-01-29T20:15:15Z"
}
}