Vulnerabilities

2 via 3 paths

Dependencies

382

Source

GitHub

Commit

db25ac72

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
  • 1
Status
  • 2
  • 0
  • 0

high severity
new

XML Entity Expansion

  • Vulnerable module: fast-xml-parser
  • Introduced through: sf-chipps-package@1.2.7

Detailed paths

  • Introduced through: sf-chipps@ClayChipps/sf-chipps#db25ac7251d34a5411652cc1aa7ad222bccf1a0c sf-chipps-package@1.2.7 @salesforce/packaging@3.7.3 fast-xml-parser@4.5.4

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 ws package

Remediation

Upgrade fast-xml-parser to version 5.5.6 or higher.

References

medium severity

Symlink Attack

  • Vulnerable module: tmp
  • Introduced through: sf-chipps-package@1.2.7

Detailed paths

  • Introduced through: sf-chipps@ClayChipps/sf-chipps#db25ac7251d34a5411652cc1aa7ad222bccf1a0c sf-chipps-package@1.2.7 @salesforce/core@6.7.6 jsforce@2.0.0-beta.29 inquirer@7.3.3 external-editor@3.1.0 tmp@0.0.33
  • Introduced through: sf-chipps@ClayChipps/sf-chipps#db25ac7251d34a5411652cc1aa7ad222bccf1a0c sf-chipps-package@1.2.7 @salesforce/sf-plugins-core@5.0.13 @salesforce/core@6.7.6 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