Vulnerabilities

4 via 32 paths

Dependencies

47

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 4
  • 6
Severity
  • 8
  • 2
Status
  • 10
  • 0
  • 0

high severity

XML Entity Expansion

  • Vulnerable module: fast-xml-parser
  • Introduced through: @aurahelper/languages@2.1.6, @aurahelper/metadata-factory@2.1.6 and others

Detailed paths

  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/languages@2.1.6 fast-xml-parser@4.5.7
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/metadata-factory@2.1.6 @aurahelper/languages@2.1.6 fast-xml-parser@4.5.7
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/languages@2.1.6 fast-xml-parser@4.5.7
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/metadata-factory@2.1.6 @aurahelper/languages@2.1.6 fast-xml-parser@4.5.7
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/xml-compressor@2.0.2 @aurahelper/languages@2.1.6 fast-xml-parser@4.5.7

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

high severity

Improper Validation of Specified Quantity in Input

  • Vulnerable module: fast-xml-parser
  • Introduced through: @aurahelper/languages@2.1.6, @aurahelper/metadata-factory@2.1.6 and others

Detailed paths

  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/languages@2.1.6 fast-xml-parser@4.5.7
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/metadata-factory@2.1.6 @aurahelper/languages@2.1.6 fast-xml-parser@4.5.7
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/languages@2.1.6 fast-xml-parser@4.5.7
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/metadata-factory@2.1.6 @aurahelper/languages@2.1.6 fast-xml-parser@4.5.7
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/xml-compressor@2.0.2 @aurahelper/languages@2.1.6 fast-xml-parser@4.5.7

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

GPL-3.0 license

  • Module: @aurahelper/core
  • Introduced through: @aurahelper/core@2.7.0, @aurahelper/languages@2.1.6 and others

Detailed paths

  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/core@2.7.0
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/metadata-factory@2.1.6 @aurahelper/core@2.7.0
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/core@2.7.0
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/metadata-factory@2.1.6 @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/metadata-factory@2.1.6 @aurahelper/core@2.7.0
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/xml-compressor@2.0.2 @aurahelper/core@2.7.0
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/metadata-factory@2.1.6 @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/xml-compressor@2.0.2 @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/xml-compressor@2.0.2 @aurahelper/xml-definitions@2.0.1 @aurahelper/core@2.7.0

GPL-3.0 license

high severity

GPL-3.0 license

  • Module: @aurahelper/ignore
  • Introduced through: @aurahelper/ignore@2.0.1

Detailed paths

  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1

GPL-3.0 license

high severity

GPL-3.0 license

  • Module: @aurahelper/languages
  • Introduced through: @aurahelper/languages@2.1.6, @aurahelper/metadata-factory@2.1.6 and others

Detailed paths

  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/languages@2.1.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/metadata-factory@2.1.6 @aurahelper/languages@2.1.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/languages@2.1.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/metadata-factory@2.1.6 @aurahelper/languages@2.1.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/xml-compressor@2.0.2 @aurahelper/languages@2.1.6

GPL-3.0 license

high severity

GPL-3.0 license

  • Module: @aurahelper/metadata-factory
  • Introduced through: @aurahelper/metadata-factory@2.1.6 and @aurahelper/ignore@2.0.1

Detailed paths

  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/metadata-factory@2.1.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/metadata-factory@2.1.6

GPL-3.0 license

high severity

GPL-3.0 license

  • Module: @aurahelper/xml-compressor
  • Introduced through: @aurahelper/ignore@2.0.1

Detailed paths

  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/xml-compressor@2.0.2

GPL-3.0 license

high severity

GPL-3.0 license

  • Module: @aurahelper/xml-definitions
  • Introduced through: @aurahelper/ignore@2.0.1

Detailed paths

  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/xml-compressor@2.0.2 @aurahelper/xml-definitions@2.0.1

GPL-3.0 license

medium severity

Missing Release of Resource after Effective Lifetime

  • Vulnerable module: inflight
  • Introduced through: @aurahelper/core@2.7.0, @aurahelper/languages@2.1.6 and others

Detailed paths

  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/core@2.7.0 unzipper@0.10.14 fstream@1.0.12 rimraf@2.7.1 glob@7.2.3 inflight@1.0.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0 unzipper@0.10.14 fstream@1.0.12 rimraf@2.7.1 glob@7.2.3 inflight@1.0.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/metadata-factory@2.1.6 @aurahelper/core@2.7.0 unzipper@0.10.14 fstream@1.0.12 rimraf@2.7.1 glob@7.2.3 inflight@1.0.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/core@2.7.0 unzipper@0.10.14 fstream@1.0.12 rimraf@2.7.1 glob@7.2.3 inflight@1.0.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/metadata-factory@2.1.6 @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0 unzipper@0.10.14 fstream@1.0.12 rimraf@2.7.1 glob@7.2.3 inflight@1.0.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0 unzipper@0.10.14 fstream@1.0.12 rimraf@2.7.1 glob@7.2.3 inflight@1.0.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/metadata-factory@2.1.6 @aurahelper/core@2.7.0 unzipper@0.10.14 fstream@1.0.12 rimraf@2.7.1 glob@7.2.3 inflight@1.0.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/xml-compressor@2.0.2 @aurahelper/core@2.7.0 unzipper@0.10.14 fstream@1.0.12 rimraf@2.7.1 glob@7.2.3 inflight@1.0.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/metadata-factory@2.1.6 @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0 unzipper@0.10.14 fstream@1.0.12 rimraf@2.7.1 glob@7.2.3 inflight@1.0.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/xml-compressor@2.0.2 @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0 unzipper@0.10.14 fstream@1.0.12 rimraf@2.7.1 glob@7.2.3 inflight@1.0.6
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/xml-compressor@2.0.2 @aurahelper/xml-definitions@2.0.1 @aurahelper/core@2.7.0 unzipper@0.10.14 fstream@1.0.12 rimraf@2.7.1 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

Arbitrary File Write via Archive Extraction (Zip Slip)

  • Vulnerable module: unzipper
  • Introduced through: @aurahelper/core@2.7.0, @aurahelper/languages@2.1.6 and others

Detailed paths

  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/core@2.7.0 unzipper@0.10.14
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0 unzipper@0.10.14
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/metadata-factory@2.1.6 @aurahelper/core@2.7.0 unzipper@0.10.14
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/core@2.7.0 unzipper@0.10.14
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/metadata-factory@2.1.6 @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0 unzipper@0.10.14
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0 unzipper@0.10.14
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/metadata-factory@2.1.6 @aurahelper/core@2.7.0 unzipper@0.10.14
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/xml-compressor@2.0.2 @aurahelper/core@2.7.0 unzipper@0.10.14
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/metadata-factory@2.1.6 @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0 unzipper@0.10.14
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/xml-compressor@2.0.2 @aurahelper/languages@2.1.6 @aurahelper/core@2.7.0 unzipper@0.10.14
  • Introduced through: @aurahelper/package-generator@JJLongoria/aura-helper-package-generator @aurahelper/ignore@2.0.1 @aurahelper/xml-compressor@2.0.2 @aurahelper/xml-definitions@2.0.1 @aurahelper/core@2.7.0 unzipper@0.10.14

Overview

unzipper is a library for the Uzip cross-platform streaming AP.I

Affected versions of this package are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip) in the extraction path validation in lib/extract.js and lib/Open/directory.js, which check only that the resolved path begins with the destination string (extractPath.indexOf(opts.path) != 0) without enforcing a directory-separator boundary. An attacker can write files outside the intended extraction directory, enabling file overwrite or code execution, by supplying a ZIP archive whose entry resolves to a sibling path such as /tmp/dest-evil/escaped.txt that shares the destination's string prefix, which a victim then extracts. Exploitation requires the victim to extract an untrusted archive with unzipper, and it works through sibling-prefix paths since standard ../../ traversal remains blocked.

Note: This is a bypass of the fix for the vulnerability described in CVE-2018-1002203.

Details

It is exploited using a specially crafted zip archive, that holds path traversal filenames. When exploited, a filename in a malicious archive is concatenated to the target extraction directory, which results in the final path ending up outside of the target folder. For instance, a zip may hold a file with a "../../file.exe" location and thus break out of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicous file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:


+2018-04-15 22:04:29 ..... 19 19 good.txt

+2018-04-15 22:04:42 ..... 20 20 ../../../../../../root/.ssh/authorized_keys

Remediation

There is no fixed version for unzipper.

References