CVE-2025-46328: Snowflake sdk NodeJS Driver For Snowflake Has Vulnerability
LOWCVE-2025-46328 is a LOW (CVSS 3.3) nodejs driver for snowflake has vulnerability (CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition) affecting Snowflake sdk libraries in the npm ecosystem. The issue involves nodejs driver for snowflake has race condition when checking access to easy logging configuration file. Remediation is available by upgrading affected packages to version 2.0.4.
CVE-2025-46328 at a Glance
Security Impact
CVSS: 3.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2025-46328
To remediate this vulnerability, upgrade all affected Snowflake sdk 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 snowflake-sdk@2.0.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls snowflake-sdk
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-46328, inspect your project dependencies using npm:
npm ls snowflake-sdk
Analyze the terminal output to locate any version of Snowflake sdk in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.4), your application is affected.
Note: The npm ls snowflake-sdk 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-367: Time-of-check Time-of-use (TOCTOU) Race Condition, where the product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. In Snowflake sdk, 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-2025-46328 Affected Snowflake sdk Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
snowflake-sdk
|
npm |
≥ 1.10.0
< 2.0.4
|
2.0.4
|
References
Frequently Asked Questions
What is CVE-2025-46328?
Which Snowflake sdk versions are affected?
What version fixes CVE-2025-46328?
Is snowflake-sdk affected?
What is the CVSS score of CVE-2025-46328?
What CWE is associated with CVE-2025-46328?
How can I check npm dependencies for CVE-2025-46328?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wmjq-jrm2-9wfr",
"modified" : "2025-04-29T13:10:46Z",
"published" : "2025-04-28T20:31:03Z",
"aliases" : [ "CVE-2025-46328" ],
"summary" : "NodeJS Driver for Snowflake has race condition when checking access to Easy Logging configuration file",
"details" : "# Issue\nSnowflake discovered and remediated a vulnerability in the NodeJS Driver for Snowflake (“Driver”). When using the Easy Logging feature on Linux and macOS the Driver didn’t correctly verify the permissions of the logging configuration file, potentially allowing an attacker with local access to overwrite the configuration and gain control over logging level and output location.\n\nThis vulnerability affects Driver versions 1.10.0 through 2.0.3. Snowflake fixed the issue in version 2.0.4.\n\n# Vulnerability Details\nWhen using the Easy Logging feature on Linux and macOS the Driver reads logging configuration from a user-provided file. On Linux and macOS the Driver verifies that the configuration file can be written to only by its owner. That check was vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition and failed to verify that the file owner matches the user running the Driver. This could allow a local attacker with write access to the configuration file or the directory containing it to overwrite the configuration and gain control over logging level and output location.\n\n# Solution\nSnowflake released version 2.0.4 of the NodeJS Driver for Snowflake, which fixes this issue. We recommend users upgrade to version 2.0.4.\n\n# Additional Information\nIf you discover a security vulnerability in one of our products or websites, please report the issue to Snowflake through our Vulnerability Disclosure Program hosted at HackerOne. For more information, please see our [Vulnerability Disclosure Policy](https://hackerone.com/snowflake?type=team).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "snowflake-sdk"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.10.0"
}, {
"fixed" : "2.0.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.0.3"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/snowflakedb/snowflake-connector-nodejs/security/advisories/GHSA-wmjq-jrm2-9wfr"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-46328"
}, {
"type" : "WEB",
"url" : "https://github.com/snowflakedb/snowflake-connector-nodejs/commit/e94c24112271e1f44c271634bf29a3188acc68d0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/snowflakedb/snowflake-connector-nodejs"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-367" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-28T20:31:03Z",
"nvd_published_at" : "2025-04-28T23:15:44Z"
}
}