Vulnerabilities

7 via 11 paths

Dependencies

289

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
  • 6
Status
  • 7
  • 0
  • 0

high severity
new

Improper Encoding or Escaping of Output

  • Vulnerable module: open
  • Introduced through: @adobe/aio-lib-ims@6.5.0

Detailed paths

  • Introduced through: @adobe/aio-cli-plugin-cloudmanager@adobe/aio-cli-plugin-cloudmanager › @adobe/aio-lib-ims@6.5.0 › @adobe/aio-lib-ims-oauth@5.4.0 › open@8.4.2

Overview

open is a cross platform package that opens stuff like URLs, files, executables.

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output in the baseOpen function in index.js, which assembles a PowerShell Start-Process invocation by wrapping each argument as "`"${argument}`"" without escaping a double quote inside the value, and passes the target through with $ intact so PowerShell expands it as a variable reference. An attacker who controls the target or an entry in options.app.arguments can change the command PowerShell receives, either dropping text where a $name segment is expanded away or terminating the surrounding quoting with a ", which makes the call fail with no error surfaced to the caller. Reaching either case requires the calling application to pass a target or argument value that the attacker influences.

Note: This applies only where the PowerShell path is taken, meaning Windows, or WSL, where the target is first converted with convertWslPathToWindows and then handed to the same invocation. Callers on other platforms do not reach this assembly.

Remediation

Upgrade open to version 11.0.0 or higher.

References

medium severity
new

Asymmetric Resource Consumption (Amplification)

  • Vulnerable module: minimatch
  • Introduced through: @oclif/plugin-help@5.2.20 and cli-ux@6.0.9

Detailed paths

  • Introduced through: @adobe/aio-cli-plugin-cloudmanager@adobe/aio-cli-plugin-cloudmanager › @oclif/plugin-help@5.2.20 › @oclif/core@2.16.0 › ejs@3.1.10 › jake@10.9.4 › filelist@1.0.6 › minimatch@5.1.9
  • Introduced through: @adobe/aio-cli-plugin-cloudmanager@adobe/aio-cli-plugin-cloudmanager › cli-ux@6.0.9 › @oclif/core@1.26.2 › ejs@3.1.10 › jake@10.9.4 › filelist@1.0.6 › minimatch@5.1.9

Overview

minimatch is a minimal matching utility.

Affected versions of this package are vulnerable to Asymmetric Resource Consumption (Amplification) in the firstPhasePreProcess method, where the **/.. transform clones a globParts entry and pushes the clone back onto the same array inside a do...while (didSomething) fixpoint loop. An attacker can exhaust CPU and memory by supplying a glob pattern whose **/.. sequences regenerate entries during preprocessing, which secondPhasePreProcess then compares in an O(n^2) pairwise partsMatch pass over the expanded set. Exploitation requires the pattern to be parsed with optimizationLevel set to 2 or higher.

Remediation

Upgrade minimatch to version 11.0.1 or higher.

References

medium severity

Use of a Broken or Risky Cryptographic Algorithm

  • Vulnerable module: jsonwebtoken
  • Introduced through: jsonwebtoken@8.5.1

Detailed paths

  • Introduced through: @adobe/aio-cli-plugin-cloudmanager@adobe/aio-cli-plugin-cloudmanager › jsonwebtoken@8.5.1
    Remediation: Upgrade to jsonwebtoken@9.0.0.

Overview

jsonwebtoken is a JSON Web Token implementation (symmetric and asymmetric)

Affected versions of this package are vulnerable to Use of a Broken or Risky Cryptographic Algorithm such that the library can be misconfigured to use legacy, insecure key types for signature verification. For example, DSA keys could be used with the RS256 algorithm.

Exploitability

Users are affected when using an algorithm and a key type other than the combinations mentioned below:

EC: ES256, ES384, ES512

RSA: RS256, RS384, RS512, PS256, PS384, PS512

RSA-PSS: PS256, PS384, PS512

And for Elliptic Curve algorithms:

ES256: prime256v1

ES384: secp384r1

ES512: secp521r1

Workaround

Users who are unable to upgrade to the fixed version can use the allowInvalidAsymmetricKeyTypes option to true in the sign() and verify() functions to continue usage of invalid key type/algorithm combination in 9.0.0 for legacy compatibility.

Remediation

Upgrade jsonwebtoken to version 9.0.0 or higher.

References

medium severity

Improper Restriction of Security Token Assignment

  • Vulnerable module: jsonwebtoken
  • Introduced through: jsonwebtoken@8.5.1

Detailed paths

  • Introduced through: @adobe/aio-cli-plugin-cloudmanager@adobe/aio-cli-plugin-cloudmanager › jsonwebtoken@8.5.1
    Remediation: Upgrade to jsonwebtoken@9.0.0.

Overview

jsonwebtoken is a JSON Web Token implementation (symmetric and asymmetric)

Affected versions of this package are vulnerable to Improper Restriction of Security Token Assignment via the secretOrPublicKey argument due to misconfigurations of the key retrieval function jwt.verify(). Exploiting this vulnerability might result in incorrect verification of forged tokens when tokens signed with an asymmetric public key could be verified with a symmetric HS256 algorithm.

Note: This vulnerability affects your application if it supports the usage of both symmetric and asymmetric keys in jwt.verify() implementation with the same key retrieval function.

Remediation

Upgrade jsonwebtoken to version 9.0.0 or higher.

References

medium severity

Improper Authentication

  • Vulnerable module: jsonwebtoken
  • Introduced through: jsonwebtoken@8.5.1

Detailed paths

  • Introduced through: @adobe/aio-cli-plugin-cloudmanager@adobe/aio-cli-plugin-cloudmanager › jsonwebtoken@8.5.1
    Remediation: Upgrade to jsonwebtoken@9.0.0.

Overview

jsonwebtoken is a JSON Web Token implementation (symmetric and asymmetric)

Affected versions of this package are vulnerable to Improper Authentication such that the lack of algorithm definition in the jwt.verify() function can lead to signature validation bypass due to defaulting to the none algorithm for signature verification.

Exploitability

Users are affected only if all of the following conditions are true for the jwt.verify() function:

  1. A token with no signature is received.

  2. No algorithms are specified.

  3. A falsy (e.g., null, false, undefined) secret or key is passed.

Remediation

Upgrade jsonwebtoken to version 9.0.0 or higher.

References

medium severity

Improper Validation of Specified Index, Position, or Offset in Input

  • Vulnerable module: uuid
  • Introduced through: @adobe/aio-lib-ims@6.5.0

Detailed paths

  • Introduced through: @adobe/aio-cli-plugin-cloudmanager@adobe/aio-cli-plugin-cloudmanager › @adobe/aio-lib-ims@6.5.0 › @adobe/aio-lib-state@2.1.2 › @azure/cosmos@3.17.3 › uuid@8.3.2
    Remediation: Upgrade to @adobe/aio-lib-ims@7.0.0.

Overview

uuid is a RFC4122 (v1, v4, and v5) compliant UUID library.

Affected versions of this package are vulnerable to Improper Validation of Specified Index, Position, or Offset in Input due to accepting external output buffers but not rejecting out-of-range writes (small buf or large offset). This inconsistency allows silent partial writes into caller-provided buffers.

PoC

cd /home/StrawHat/uuid
npm ci
npm run build

node --input-type=module -e "
import {v4,v5,v6} from './dist-node/index.js';
const ns='6ba7b810-9dad-11d1-80b4-00c04fd430c8';
for (const [name,fn] of [
  ['v4',()=>v4({},new Uint8Array(8),4)],
  ['v5',()=>v5('x',ns,new Uint8Array(8),4)],
  ['v6',()=>v6({},new Uint8Array(8),4)],
]) {
  try { fn(); console.log(name,'NO_THROW'); }
  catch(e){ console.log(name,'THREW',e.name); }
}"

Remediation

Upgrade uuid to version 11.1.1, 14.0.0 or higher.

References

medium severity

Incorrect Control Flow Scoping

  • Vulnerable module: @tootallnate/once
  • Introduced through: @adobe/aio-lib-core-networking@3.0.0, @adobe/aio-lib-cloudmanager@3.1.2 and others

Detailed paths

  • Introduced through: @adobe/aio-cli-plugin-cloudmanager@adobe/aio-cli-plugin-cloudmanager › @adobe/aio-lib-core-networking@3.0.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2
  • Introduced through: @adobe/aio-cli-plugin-cloudmanager@adobe/aio-cli-plugin-cloudmanager › @adobe/aio-lib-cloudmanager@3.1.2 › @adobe/aio-lib-core-networking@3.0.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2
  • Introduced through: @adobe/aio-cli-plugin-cloudmanager@adobe/aio-cli-plugin-cloudmanager › @adobe/aio-lib-ims@6.5.0 › @adobe/aio-lib-core-networking@4.1.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2
  • Introduced through: @adobe/aio-cli-plugin-cloudmanager@adobe/aio-cli-plugin-cloudmanager › @adobe/aio-lib-ims@6.5.0 › @adobe/aio-lib-state@2.1.2 › @adobe/aio-lib-core-tvm@3.0.1 › @adobe/aio-lib-core-networking@3.0.0 › http-proxy-agent@4.0.1 › @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 2.0.1, 3.0.1 or higher.

References