Find, fix and prevent vulnerabilities in your code.
high severity
new
- Vulnerable module: fast-xml-parser
- Introduced through: @salesforce/source-deploy-retrieve@7.15.1
Detailed paths
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › fast-xml-parser@4.5.5Remediation: Upgrade to @salesforce/source-deploy-retrieve@12.31.10.
Overview
fast-xml-parser is a Validate XML, Parse XML, Build XML without C/C++ based libraries
Affected versions of this package are vulnerable to XML Entity Expansion in the replaceEntitiesValue() function, which doesn't protect unlimited expansion of numeric entities the way it does DOCTYPE data (as described and fixed for CVE-2026-26278). An attacker can exhaust system memory and CPU resources by submitting XML input containing a large number of numeric character references - &#NNN; and &#xHH;.
Note: This is a bypass for the fix to the DOCTYPE expansion vulnerability in 5.3.6.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade fast-xml-parser to version 5.5.6 or higher.
References
high severity
new
- Vulnerable module: fast-xml-parser
- Introduced through: @salesforce/source-deploy-retrieve@7.15.1
Detailed paths
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › fast-xml-parser@4.5.5Remediation: Upgrade to @salesforce/source-deploy-retrieve@12.31.10.
Overview
fast-xml-parser is a Validate XML, Parse XML, Build XML without C/C++ based libraries
Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input in the DocTypeReader component when the maxEntityCount or maxEntitySize configuration options are explicitly set to 0. Due to JavaScript's falsy evaluation, the intended limits are bypassed. An attacker can cause unbounded entity expansion and exhaust server memory by supplying crafted XML input containing numerous large entities.
Note:
This is only exploitable if the application is configured with processEntities enabled and either maxEntityCount or maxEntitySize set to 0.
PoC
const { XMLParser } = require("fast-xml-parser");
// Developer intends: "no entities allowed at all"
const parser = new XMLParser({
processEntities: {
enabled: true,
maxEntityCount: 0, // should mean "zero entities allowed"
maxEntitySize: 0 // should mean "zero-length entities only"
}
});
// Generate XML with many large entities
let entities = "";
for (let i = 0; i < 1000; i++) {
entities += `<!ENTITY e${i} "${"A".repeat(100000)}">`;
}
const xml = `<?xml version="1.0"?>
<!DOCTYPE foo [
${entities}
]>
<foo>&e0;</foo>`;
// This should throw "Entity count exceeds maximum" but does not
try {
const result = parser.parse(xml);
console.log("VULNERABLE: parsed without error, entities bypassed limits");
} catch (e) {
console.log("SAFE:", e.message);
}
// Control test: setting maxEntityCount to 1 correctly blocks
const safeParser = new XMLParser({
processEntities: {
enabled: true,
maxEntityCount: 1,
maxEntitySize: 100
}
});
try {
safeParser.parse(xml);
console.log("ERROR: should have thrown");
} catch (e) {
console.log("CONTROL:", e.message); // "Entity count (2) exceeds maximum allowed (1)"
}
Remediation
Upgrade fast-xml-parser to version 5.5.7 or higher.
References
high severity
- Vulnerable module: ip
- Introduced through: @salesforce/source-deploy-retrieve@7.15.1
Detailed paths
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › proxy-agent@5.0.0 › pac-proxy-agent@5.0.0 › pac-resolver@5.0.1 › ip@1.1.9
Overview
ip is a Node library.
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the ip.isPublic() and ip.isPrivate() functions. An attacker can interact with internal network resources by supplying specially crafted IP address such as octal localhost format ("017700000001") that is incorrectly identified as public.
Note:
This issue exists because of an incomplete fix for CVE-2024-29415.
PoC
Test octal localhost bypass:
node -e "const ip=require('ip'); console.log('017700000001 bypass:', ip.isPublic('017700000001'));" - returns true
Remediation
There is no fixed version for ip.
References
high severity
- Vulnerable module: ip
- Introduced through: @salesforce/source-deploy-retrieve@7.15.1
Detailed paths
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › proxy-agent@5.0.0 › pac-proxy-agent@5.0.0 › pac-resolver@5.0.1 › ip@1.1.9
Overview
ip is a Node library.
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the ip.isPublic() and ip.isPrivate() functions. An attacker can interact with internal network resources by supplying specially crafted IP address such as null route ("0") that is being incorrectly identified as public.
Note: This issue exists because of an incomplete fix for CVE-2024-29415.
Exploit is only possible if the application and operating system interpret connection attempts to 0 or 0.0.0.0 as connections to 127.0.0.1.
PoC
Test null route bypass:
node -e "const ip=require('ip'); console.log('0 bypass:', ip.isPublic('0'));" - returns true
Remediation
There is no fixed version for ip.
References
medium severity
- Vulnerable module: tmp
- Introduced through: @salesforce/core@3.36.2, @salesforce/command@5.3.9 and others
Detailed paths
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/core@3.36.2 › jsforce@2.0.0-beta.29 › inquirer@7.3.3 › external-editor@3.1.0 › tmp@0.0.33
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/command@5.3.9 › @salesforce/core@3.36.2 › jsforce@2.0.0-beta.29 › inquirer@7.3.3 › external-editor@3.1.0 › tmp@0.0.33
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › @salesforce/core@3.36.2 › jsforce@2.0.0-beta.29 › inquirer@7.3.3 › external-editor@3.1.0 › tmp@0.0.33
Overview
Affected versions of this package are vulnerable to Symlink Attack via the dir parameter. An attacker can cause files or directories to be written to arbitrary locations by supplying a crafted symbolic link that resolves outside the intended temporary directory.
PoC
const tmp = require('tmp');
const tmpobj = tmp.fileSync({ 'dir': 'evil-dir'});
console.log('File: ', tmpobj.name);
try {
tmp.fileSync({ 'dir': 'mydir1'});
} catch (err) {
console.log('test 1:', err.message)
}
try {
tmp.fileSync({ 'dir': '/foo'});
} catch (err) {
console.log('test 2:', err.message)
}
try {
const fs = require('node:fs');
const resolved = fs.realpathSync('/tmp/evil-dir');
tmp.fileSync({ 'dir': resolved});
} catch (err) {
console.log('test 3:', err.message)
}
Remediation
Upgrade tmp to version 0.2.4 or higher.
References
medium severity
- Vulnerable module: ip
- Introduced through: @salesforce/source-deploy-retrieve@7.15.1
Detailed paths
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › proxy-agent@5.0.0 › pac-proxy-agent@5.0.0 › pac-resolver@5.0.1 › ip@1.1.9
Overview
ip is a Node library.
Affected versions of this package are vulnerable to Server-Side Request Forgery (SSRF) via the isPublic function, which identifies some private IP addresses as public addresses due to improper parsing of the input.
An attacker can manipulate a system that uses isLoopback(), isPrivate() and isPublic functions to guard outgoing network requests to treat certain IP addresses as globally routable by supplying specially crafted IP addresses.
Note
This vulnerability derived from an incomplete fix for CVE-2023-42282
Remediation
There is no fixed version for ip.
References
medium severity
- Vulnerable module: inflight
- Introduced through: @salesforce/core@3.36.2, @salesforce/source-deploy-retrieve@7.15.1 and others
Detailed paths
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/core@3.36.2 › archiver@5.3.2 › archiver-utils@2.1.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › archiver@5.3.2 › archiver-utils@2.1.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/core@3.36.2 › @salesforce/kit@1.9.2 › shx@0.3.4 › shelljs@0.8.5 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/command@5.3.9 › @salesforce/kit@1.9.2 › shx@0.3.4 › shelljs@0.8.5 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › @salesforce/kit@1.9.2 › shx@0.3.4 › shelljs@0.8.5 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/command@5.3.9 › @salesforce/core@3.36.2 › archiver@5.3.2 › archiver-utils@2.1.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › @salesforce/core@3.36.2 › archiver@5.3.2 › archiver-utils@2.1.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/core@3.36.2 › archiver@5.3.2 › zip-stream@4.1.1 › archiver-utils@3.0.4 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › archiver@5.3.2 › zip-stream@4.1.1 › archiver-utils@3.0.4 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › unzipper@0.10.11 › fstream@1.0.12 › rimraf@2.7.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/command@5.3.9 › @salesforce/core@3.36.2 › @salesforce/kit@1.9.2 › shx@0.3.4 › shelljs@0.8.5 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › @salesforce/core@3.36.2 › @salesforce/kit@1.9.2 › shx@0.3.4 › shelljs@0.8.5 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/command@5.3.9 › @salesforce/core@3.36.2 › archiver@5.3.2 › zip-stream@4.1.1 › archiver-utils@3.0.4 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › @salesforce/core@3.36.2 › archiver@5.3.2 › zip-stream@4.1.1 › archiver-utils@3.0.4 › glob@7.2.3 › inflight@1.0.6
Overview
Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime via the makeres function due to improperly deleting keys from the reqs object after execution of callbacks. This behavior causes the keys to remain in the reqs object, which leads to resource exhaustion.
Exploiting this vulnerability results in crashing the node process or in the application crash.
Note: This library is not maintained, and currently, there is no fix for this issue. To overcome this vulnerability, several dependent packages have eliminated the use of this library.
To trigger the memory leak, an attacker would need to have the ability to execute or influence the asynchronous operations that use the inflight module within the application. This typically requires access to the internal workings of the server or application, which is not commonly exposed to remote users. Therefore, “Attack vector” is marked as “Local”.
PoC
const inflight = require('inflight');
function testInflight() {
let i = 0;
function scheduleNext() {
let key = `key-${i++}`;
const callback = () => {
};
for (let j = 0; j < 1000000; j++) {
inflight(key, callback);
}
setImmediate(scheduleNext);
}
if (i % 100 === 0) {
console.log(process.memoryUsage());
}
scheduleNext();
}
testInflight();
Remediation
There is no fixed version for inflight.
References
medium severity
new
- Vulnerable module: @tootallnate/once
- Introduced through: @salesforce/source-deploy-retrieve@7.15.1
Detailed paths
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › proxy-agent@5.0.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › proxy-agent@5.0.0 › pac-proxy-agent@5.0.0 › @tootallnate/once@1.1.2
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › proxy-agent@5.0.0 › pac-proxy-agent@5.0.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2
-
Introduced through: sf-codegen@dieffrei/sf-codegen#6a2936a6eb90439e21ba067c7711d6571011bd58 › @salesforce/source-deploy-retrieve@7.15.1 › proxy-agent@5.0.0 › pac-proxy-agent@5.0.0 › get-uri@3.0.2 › @tootallnate/once@1.1.2
Overview
Affected versions of this package are vulnerable to Incorrect Control Flow Scoping in promise resolving when AbortSignal option is used. The Promise remains in a permanently pending state after the signal is aborted, causing any await or .then() usage to hang indefinitely. This can cause a control-flow leak that can lead to stalled requests, blocked workers, or degraded application availability.
Remediation
Upgrade @tootallnate/once to version 3.0.1 or higher.