Vulnerabilities

18 via 185 paths

Dependencies

178

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 6
  • 3
  • 9
Status
  • 18
  • 0
  • 0

critical severity
new

Arbitrary Argument Injection

  • Vulnerable module: @simple-git/argv-parser
  • Introduced through: @nhscc/backend-drive@1.3.1, @nhscc/backend-qoverflow@1.2.1 and others

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1

Overview

Affected versions of this package are vulnerable to Arbitrary Argument Injection via the --exec option in listRemote() and raw(), which allows attackers to bypass the allowUnsafePack guard by injecting --exec into non-push git operations such as ls-remote, archive, fetch-pack, or send-pack, resulting in arbitrary command execution on the host.

Remediation

Upgrade @simple-git/argv-parser to version 3.0.0 or higher.

References

critical severity

Command Injection

  • Vulnerable module: @simple-git/argv-parser
  • Introduced through: @nhscc/backend-drive@1.3.1, @nhscc/backend-qoverflow@1.2.1 and others

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0 › @simple-git/argv-parser@1.1.1

Overview

Affected versions of this package are vulnerable to Command Injection via the prepareEnv function in parse-env.ts, which fails to recognize the VISUAL environment variable as a tracked unsafe editor key. Because VISUAL is not included in the GitEnvKeys map, it is silently discarded before collectConfigVulnerabilities inspects the environment, allowing an attacker-controlled VISUAL value to bypass the blockUnsafeOperationsPlugin spawn guard that would otherwise require the consumer to explicitly opt in to allowUnsafeEditor. This bypass permits an attacker who can influence the process environment to inject an arbitrary editor binary, potentially achieving remote code execution.

Remediation

Upgrade @simple-git/argv-parser to version 2.0.1 or higher.

References

critical severity
new

Arbitrary Argument Injection

  • Vulnerable module: simple-git
  • Introduced through: @nhscc/backend-drive@1.3.1, @nhscc/backend-qoverflow@1.2.1 and others

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0

Overview

simple-git is a light weight interface for running git commands in any node.js application.

Affected versions of this package are vulnerable to Arbitrary Argument Injection via the --exec option in listRemote() and raw(), which allows attackers to bypass the allowUnsafePack guard by injecting --exec into non-push git operations such as ls-remote, archive, fetch-pack, or send-pack, resulting in arbitrary command execution on the host.

Remediation

Upgrade simple-git to version 4.1.0 or higher.

References

critical severity

Arbitrary Command Injection

  • Vulnerable module: simple-git
  • Introduced through: @nhscc/backend-drive@1.3.1, @nhscc/backend-qoverflow@1.2.1 and others

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0

Overview

simple-git is a light weight interface for running git commands in any node.js application.

Affected versions of this package are vulnerable to Arbitrary Command Injection via the blockUnsafeOperationsPlugin, which fails to block dangerous git options (such as --upload-pack, --receive-pack, and --exec) when abbreviated forms of those options are supplied by an attacker. An attacker who can influence the arguments passed to git commands can bypass the plugin's protections and achieve remote code execution.

Note: This is only exploitable when the consumer has not opted in via unsafe:{allowUnsafePack:true}, meaning the plugin is active but can be bypassed through abbreviated option names.

Remediation

Upgrade simple-git to version 4.0.0 or higher.

References

critical severity

Arbitrary Command Injection

  • Vulnerable module: simple-git
  • Introduced through: @nhscc/backend-drive@1.3.1, @nhscc/backend-qoverflow@1.2.1 and others

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0

Overview

simple-git is a light weight interface for running git commands in any node.js application.

Affected versions of this package are vulnerable to Arbitrary Command Injection via the detect-vulnerable-config-writes path in the argv-parser package, where unsanitised arguments passed to git commands allow an attacker to inject arbitrary options through abbreviated flag handling. Because git accepts abbreviated long options by default, a remote attacker can supply a truncated flag that resolves to a dangerous option (such as --upload-pack) and achieve arbitrary command execution on the host running the library.

Remediation

Upgrade simple-git to version 4.0.0 or higher.

References

critical severity

Command Injection

  • Vulnerable module: simple-git
  • Introduced through: @nhscc/backend-drive@1.3.1, @nhscc/backend-qoverflow@1.2.1 and others

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › simple-git@3.36.0

Overview

simple-git is a light weight interface for running git commands in any node.js application.

Affected versions of this package are vulnerable to Command Injection via the rebase command handler and the trailer.<token>.cmd/trailer.<token>.command configuration keys, which allow an attacker to inject the -x/--exec flag or a shell-executable trailer command into a spawned Git process. An attacker who can influence the arguments or configuration passed to simple-git can achieve arbitrary command execution on the host system.

Remediation

Upgrade simple-git to version 4.0.0 or higher.

References

high severity

Directory Traversal

  • Vulnerable module: postcss
  • Introduced through: @nhscc/backend-drive@1.3.1 and @nhscc/backend-qoverflow@1.2.1

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › next@15.5.29 › postcss@8.4.31
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › next@15.5.29 › postcss@8.4.31

Overview

postcss is a PostCSS is a tool for transforming styles with JS plugins.

Affected versions of this package are vulnerable to Directory Traversal via the process function. An attacker can access arbitrary files and obtain the first ~10 bytes of their contents by supplying a crafted sourceMappingURL comment in CSS input, which is parsed and dereferenced without proper validation. This can lead to disclosure of sensitive information, confirmation of file existence, and potential denial of service by targeting large or special files.

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside 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 malicious 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

Upgrade postcss to version 8.5.12 or higher.

References

high severity

Directory Traversal

  • Vulnerable module: postcss
  • Introduced through: @nhscc/backend-drive@1.3.1 and @nhscc/backend-qoverflow@1.2.1

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › next@15.5.29 › postcss@8.4.31
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › next@15.5.29 › postcss@8.4.31

Overview

postcss is a PostCSS is a tool for transforming styles with JS plugins.

Affected versions of this package are vulnerable to Directory Traversal via the loadMap process. An attacker can access the contents of arbitrary .map files on the filesystem by submitting crafted CSS containing a sourceMappingURL comment with a path traversal or absolute path, which is then loaded and its content merged into the resulting source map returned by the process.

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside 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 malicious 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

Upgrade postcss to version 8.5.18 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: next
  • Introduced through: @nhscc/backend-drive@1.3.1 and @nhscc/backend-qoverflow@1.2.1

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › next@15.5.29
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › next@15.5.29

Overview

next is a react framework.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the Partial Prerendering resume endpoint when unauthenticated POST requests with the Next-Resume: 1 header are processed and attacker-controlled postponed state data is handled. An attacker can cause the server process to crash and exhaust system memory by sending large or highly compressed payloads that are buffered or decompressed without size limits.

Note:

This is only exploitable if the application is running with experimental.ppr: true or cacheComponents: true configured along with the NEXT_PRIVATE_MINIMAL_MODE=1 environment variable.

Remediation

Upgrade next to version 15.6.0-canary.61, 16.1.1-canary.16, 16.1.5 or higher.

References

medium severity
new

Asymmetric Resource Consumption (Amplification)

  • Vulnerable module: minimatch
  • Introduced through: @nhscc/backend-drive@1.3.1, @nhscc/backend-qoverflow@1.2.1 and others

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/jest@2.2.11 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/jest@2.2.11 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › glob@13.0.7 › minimatch@10.2.6
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/jest@2.2.11 › @-xun/test-mock-fixture@2.1.3 › glob@13.0.7 › minimatch@10.2.6

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

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: next
  • Introduced through: @nhscc/backend-drive@1.3.1 and @nhscc/backend-qoverflow@1.2.1

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › next@15.5.29
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › next@15.5.29

Overview

next is a react framework.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to the lack of an upper bound on the disk cache used by the image optimization. An attacker can exhaust disk storage by generating a large number of unique image optimization variants, leading to service disruption.

Workaround

This vulnerability can be mitigated by periodically cleaning the .next/cache/images directory or by reducing the number of possible image variants through configuration of images.localPatterns, images.remotePatterns, and images.qualities.

Remediation

Upgrade next to version 16.1.7, 16.2.0-canary.54 or higher.

References

medium severity

Directory Traversal

  • Vulnerable module: postcss
  • Introduced through: @nhscc/backend-drive@1.3.1 and @nhscc/backend-qoverflow@1.2.1

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › next@15.5.29 › postcss@8.4.31
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › next@15.5.29 › postcss@8.4.31

Overview

postcss is a PostCSS is a tool for transforming styles with JS plugins.

Affected versions of this package are vulnerable to Directory Traversal in the PreviousMap.loadFile() method of lib/previous-map.js, which nests its traversal guard inside an if (cssFile) branch that is skipped when the from option is unset, leaving only a check that the target path ends in .map. An attacker can read arbitrary .map files from the filesystem, disclosing their sources paths and sourcesContent through the generated source map, by placing an absolute or ../ path in a sourceMappingURL comment in the processed CSS. This requires the application to process attacker-influenced CSS without the from option, with map enabled and the source-map module available, and then expose result.map to the attacker, and the read is limited to JSON-parseable files ending in .map.

Workaround

This vulnerability can be avoided by passing an explicit from option when processing untrusted CSS, which restores the traversal guard that is otherwise skipped.

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

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside 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 malicious 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

Upgrade postcss to version 8.5.23 or higher.

References

medium severity
new

Improper Neutralization of Null Byte or NUL Character

  • Vulnerable module: mongodb
  • Introduced through: mongodb@6.22.0, @-xun/mongo-schema@1.5.0 and others

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › mongodb@6.22.0
    Remediation: Upgrade to mongodb@7.9.1.
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0

Overview

mongodb is an official MongoDB driver for Node.js.

Affected versions of this package are vulnerable to Improper Neutralization of Null Byte or NUL Character in the plain.js PLAIN authentication provider, which builds the SASL PLAIN message by joining the username and password with NUL separators without rejecting NUL characters inside either field. A user with valid credentials for one identity can authenticate as that identity instead of the one the application constructed, bypassing application-side identity checks such as an allow list or a required username suffix, by supplying a username containing NUL-separated authentication and password values. This affects only applications that use authMechanism: 'PLAIN' and build the username or password from less trusted input.

Workaround

This vulnerability can be avoided by rejecting any username or password that contains a NUL character (\0, or %00 in a connection string) before passing it to MongoClient.

Remediation

Upgrade mongodb to version 7.9.1 or higher.

References

medium severity

Use of Cache Containing Sensitive Information

  • Vulnerable module: next
  • Introduced through: @nhscc/backend-drive@1.3.1 and @nhscc/backend-qoverflow@1.2.1

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › next@15.5.29
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › next@15.5.29

Overview

next is a react framework.

Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information via cross-request deduplication in the use-cache-wrapper.ts cache function, where draft mode state is not accounted for when sharing cached fills across concurrent requests. A draft mode request can join a pending public cache fill and receive published content instead of draft content, or conversely, a fill executed under draft mode containing unpublished content can be registered and served to non-draft requests.

Note: This is only exploitable when the 'use cache' directive is in use and concurrent requests occur, one of which has draft mode enabled.

Remediation

Upgrade next to version 16.3.8 or higher.

References

medium severity

Use of Cache Containing Sensitive Information

  • Vulnerable module: next
  • Introduced through: @nhscc/backend-drive@1.3.1 and @nhscc/backend-qoverflow@1.2.1

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › next@15.5.29
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › next@15.5.29

Overview

next is a react framework.

Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information via insufficient scoping of response cache keys in the server's cache key generation logic, where cache keys are not bound to their source route. An attacker can trigger a cache key collision between distinct routes, causing one route's cached response to be served for a different route and resulting in partial availability loss for affected endpoints.

Remediation

Upgrade next to version 15.5.27, 16.3.8, 16.3.8 or higher.

References

medium severity
new

Improper Restriction of Communication Channel to Intended Endpoints

  • Vulnerable module: mongodb
  • Introduced through: mongodb@6.22.0, @-xun/mongo-schema@1.5.0 and others

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › mongodb@6.22.0
    Remediation: Upgrade to mongodb@7.9.0.
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0

Overview

mongodb is an official MongoDB driver for Node.js.

Affected versions of this package are vulnerable to Improper Restriction of Communication Channel to Intended Endpoints via OIDC ENVIRONMENT and callback confusion in MongoCredentials validation, where specifying both an ENVIRONMENT value and an OIDC_CALLBACK or OIDC_HUMAN_CALLBACK bypasses the ALLOWED_HOSTS restriction. A bearer token produced by the application's own login callback can therefore be transmitted to a host outside the configured set of permitted hosts, resulting in unintended disclosure of that credential.

Remediation

Upgrade mongodb to version 7.9.0 or higher.

References

medium severity
new

Information Exposure

  • Vulnerable module: mongodb
  • Introduced through: mongodb@6.22.0, @-xun/mongo-schema@1.5.0 and others

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › mongodb@6.22.0
    Remediation: Upgrade to mongodb@7.9.1.
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-item@1.3.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › @-xun/mongo-schema@1.5.0 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-airports@1.2.4 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › @-xun/api-strategy@1.3.9 › @-xun/mongo-test@3.0.4 › mongodb-memory-server@10.4.3 › mongodb-memory-server-core@10.4.3 › mongodb@6.22.0

Overview

mongodb is an official MongoDB driver for Node.js.

Affected versions of this package are vulnerable to Information Exposure in the HostAddress class in utils.ts and the parseOptions function in connection_string.ts, which include connection-string components in the messages and cause of errors thrown during MongoClient construction and connection. An attacker with access to the application's logs can obtain database credentials when the application passes a connection string with credentials but no valid host, because the user:pass portion is parsed as host:port and appears in the resulting Unable to parse ... with URL error and its cause.input. This affects only applications that build connection strings from user or configuration input where a missing or malformed host can reach the driver, and that log driver errors or MongoClient instances.

Workaround

This vulnerability can be avoided by validating that connection strings contain a host before passing them to the driver, and by redacting the message and cause of errors raised during MongoClient construction or connection before logging them.

Remediation

Upgrade mongodb to version 7.9.1 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: postcss
  • Introduced through: @nhscc/backend-drive@1.3.1 and @nhscc/backend-qoverflow@1.2.1

Detailed paths

  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-drive@1.3.1 › next@15.5.29 › postcss@8.4.31
  • Introduced through: @nhscc/bdpa-cli@nhscc/bdpa-cli › @nhscc/backend-qoverflow@1.2.1 › next@15.5.29 › postcss@8.4.31

Overview

postcss is a PostCSS is a tool for transforming styles with JS plugins.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in CSS Stringify Output. An attacker can execute arbitrary JavaScript code in the context of the affected web page by submitting crafted CSS containing </style> sequences that are not properly escaped when embedded within HTML <style> tags.

PoC

const postcss = require('postcss');

// Parse user CSS and re-stringify for page embedding
const userCSS = 'body { content: "</style><script>alert(1)</script><style>"; }';
const ast = postcss.parse(userCSS);
const output = ast.toResult().css;
const html = `<style>${output}</style>`;

console.log(html);
// <style>body { content: "</style><script>alert(1)</script><style>"; }</style>
//
// Browser: </style> closes the style tag, <script> executes

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade postcss to version 8.5.10 or higher.

References