Vulnerability DatabaseGHSA-78jj-xfpm-g6px

GHSA-78jj-xfpm-g6px: 
JavaScript vulnerability analysis and mitigation

Impact

alint reads configurations, rulesets and policy-test packages that other people write. Before 0.23.0, several of them could do more than alint promises, in the ways below. Each item names the versions it affects; every one is fixed in 0.23.0. What alint trusts. A repository's own top-level .alint.yml is trusted the way its Makefile is: alint check in a clone runs its kind: command rules, --no-spawn (new in 0.23.0) refuses them and runs no Git, and --untrusted also refuses a remote extends: and allow_out_of_root: and gives the config an empty environment. A ruleset reached through extends: may not run commands; a remote one, unless listed in trusted_extends, may not read the environment either. A policy-test package run by alint test may run nothing without capabilities: { spawn: true } or --allow-spawn, and sees only the environment its given.env sets.

Opening a repository in an editor (language server)

  1. Commands ran on opening a folder (v0.11.0 to v0.22.1). The language server ran the workspace's .alint.yml as alint check does, so opening a cloned repository ran its command rules and custom: facts, fetched a remote extends:, honored allow_out_of_root:, and read the editor's environment for {{env.*}}. The server now does none of this, and runs no Git (which runs the commands a repository's .git/config names), until the client says the workspace is trusted; VS Code sends its Workspace Trust state.
  2. A vendored config governed files (v0.18.0 to v0.22.1). Each open file was linted with the nearest .alint.yml above it, so one shipped under node_modules/ could run a command when one of its files was opened.
  3. Reading nested_configs resolved extends: (v0.18.0 to v0.22.1), so a vendored config could send an environment value to a host it named.
  4. Hover rendered Markdown and CodeDescription accepted any URL scheme (v0.11.0 to v0.22.1): text from the repository in a finding could render an image the editor fetched, a link or HTML, and non-http(s) policy_url values were forwarded as links (Markdown, terminal OSC 8 and export-agents-md outputs now enforce http:///https:// too, and export-agents-md sanitizes directives and refuses symlinks).
  5. alint lsp --config was ignored (v0.11.0 to v0.22.1): the repository's own config ran instead of the one the user named.
  6. LSP notes exposed redacted paths (v0.20.0 to v0.22.1): with --show-notes, the language server logged the raw path of a rule whose files were chosen from the environment instead of <redacted>, and all output formats now also suppress line/column numbers and related locations when a finding's path is <redacted>.

Configurations and rulesets

  1. Discovery used another user's config (v0.1.0 to v0.22.1). alint looked for .alint.yml up to the file-system root, so a config someone else wrote above a checkout (/tmp/.alint.yml) governed the run, command rules included. Discovery now stops at the repository's top and, outside a repository, skips an ancestor's config another user owns.
  2. Any rule could read a Git directory (v0.10.0 to v0.22.1). A cross_file rule could read .git/config and print the AUTHORIZATION header actions/checkout persists into its message, from any configuration, a pinned remote ruleset included. No rule reads a Git directory now (including out-of-root paths resolved under allow_out_of_root: and Windows GIT~1..GIT~4 short names).
  3. allow_out_of_root covered extended rulesets: their rules could read outside the repository when checked (v0.12.0 to v0.22.1), and their fixes could read and write outside it (v0.14.0 to v0.22.1). It now covers the user's own rules only.
  4. An extended ruleset's fix could write alint's configuration (v0.5.8 to v0.22.1), such as a .alint.d/ drop-in holding a command rule that the next alint check ran; alternate Windows and HFS+ spellings of loaded config files and local extends: targets are refused as well.
  5. An extends: URL in another case or scheme (v0.2.1 to v0.22.1) was read as a local path with no integrity hash, and the error printed it whole, credentials included.
  6. A nested config could escape its subtree (v0.18.0 to v0.22.1): globs with .. traversal (including after ./, inside {...} brace groups, or after {path}/{dir}), leading / or \, Windows drive prefixes, or non-subtree-anchored tokens ({**}, {basename}) could reach outside the nested config's directory.
  7. A configuration or workflow could crash, hang or exhaust memory (from v0.2.1, by item; to v0.22.1): a deep requires: value, an extends: diamond, template expansion, or a FIFO or /dev/zero as a config file. pinned_references also hung on a self-referencing merge key or a GitLab CI extends: diamond DAG (v0.19.0 to v0.22.1).

Fixes, baselines and Git

  1. A fix or baseline could write or read a Git directory (alint fix with an extends: ruleset, v0.2.1 to v0.22.1; content_from since v0.5.10; alint baseline since v0.14.0). A file_create could write .git/config with a core.fsmonitor, which the next Git command ran, so a ruleset kept from running commands ran one; content_from: .git/config copied the repository's credentials into a worktree file; and alint baseline could target .git/ directly or through a symlink.
  2. A content fix wrote through a symlink into .git (v0.2.0 to v0.22.1; a command since v0.5.10). A repository could commit src/evil.rs -> ../.git/config, so the user's own file_header fix wrote into .git/config.
  3. Git discovered a bare repository from a directory without .git (alint check and alint fix with a Git rule or git_tracked_only, v0.4.8 to v0.22.1). A tree with HEAD, objects/, refs/ and a config naming a core.fsmonitor ran that command, as git status run there would. alint now finds the repository itself and names it to Git with --git-dir; safe.bareRepository=explicit alone does nothing before Git 2.38.
  4. An extended or nested config could promote a fix to apply without asking (v0.17.0 to v0.22.1). Written as a mapping (applicability: {safe: ~}, tagged or not), the tier passed the check that kept such a config from promoting a fix, so a bare alint fix ran, for example, a file_remove from a ruleset reached through extends:.
  5. A structured YAML fix could crash or exhaust memory (v0.17.0 to v0.22.1). alint fix and alint check --format sarif overflowed the stack on a deeply nested file, and a 600-byte alias bomb ran 17 s to 3.35 GB, on files the check itself read in milliseconds.

Reading a repository

  1. An ignore file was read without bound (every version to v0.22.1). A committed .gitignore or .ignore that is a symlink to /dev/zero, a FIFO or a /proc file such as /proc/self/pagemap made alint check, alint fix and the language server exhaust memory or hang. Disk reads in LSP buffer overlays, alint init, alint suggest, alint export-agents-md --inline, alint test, alint fix command snapshots and alint-testkit are now bounded to regular files too.
  2. A baseline was read without bound and from anywhere (v0.14.0 to v0.22.1): a repository's baseline: key could name /dev/zero, a FIFO or a file outside the repository.
  3. A local extends: written as a network path was opened before it was refused (v0.14.0 to v0.22.1): on Windows, extends: //host/share/x.yml connected to that host before the confinement to the config's directory refused it.
  4. The git_branch fact read .git/HEAD without bound (v0.3.0 to v0.22.1): with a configuration that declares the fact, a .git/HEAD that is a symlink to /dev/zero or a FIFO made the run exhaust memory or hang.
  5. Secret-bearing manifest scope_filter: redaction gaps (v0.15.0 to v0.22.1): nested rules under for_each_dir/for_each_file and regex/line extractors reading .env/.properties manifests could leak paths selected from those files; both are now redacted as top-level structured .env manifest scopes are.

Policy tests (alint test and alint_testkit::Runner, v0.20.0 to v0.22.1)

  1. A spawning rule nested in require: ran without the spawn capability, and --untrusted / --no-spawn now refuse --allow-host-keyring alongside --allow-spawn.
  2. given.env reached alint's own Git commands (GIT_CONFIG_*, GIT_TRACE, LD_PRELOAD), even for a refused test.
  3. A fixture shaped like a bare repository ran a core.fsmonitor command (item 16).
  4. env.X in when: and ${VAR} in since: read the host's environment, so a test could tell a secret's characters apart; conditions now read given.env only, with no host variables or runner sandbox paths exposed.
  5. A chain of symlinks in given.tree, a given.fixture link resolved from the copy, or a relocate fix moving a link let a test write or read files outside its sandbox; a file named git written to a directory on PATH then ran.
  6. A test's Git reads found a repository above the sandbox (TMPDIR inside a checkout), and with the host keyring granted, the host's global Git excludes applied.
  7. A fixture copy had no size limit; hard links to one large file filled the disk.

Patches

Fixed in 0.23.0: asamarts/alint#515, #519, #522, #527, #539, #540, #541, #542, #543, #551, #560, #586, #599 and #616. The CHANGELOG's Security section describes each fix.

Workarounds

Until you upgrade:

  • run alint check and alint fix from inside a repository, with a .alint.yml in its top directory whose command rules, custom: facts and extends: you have read;
  • use extends: only with rulesets you trust, and avoid allow_out_of_root with them;
  • disable the alint editor extension in workspaces you do not trust;
  • keep .gitignore, .ignore, .git/HEAD and baseline files that are symlinks or FIFOs out of a repository you lint, or lint it from a copy without them;
  • run alint test only on policy-test packages you trust;
  • run alint on an untrusted repository under a time and memory limit. Git 2.38 or later with safe.bareRepository=explicit in your global configuration also stops item 16.

Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-hvp5-3mrg-q5hgHIGH7.5
  • JavaScript logoJavaScript
  • http-proxy-middleware
NoNoNov 22, 2026
GHSA-mfx2-3f77-8pfwMEDIUMN/A
  • JavaScript logoJavaScript
  • ong-sementes-amanha
NoYesNov 22, 2026
GHSA-cgf8-w36h-48hqMEDIUMN/A
  • JavaScript logoJavaScript
  • ong-sementes-amanha
NoYesNov 22, 2026
GHSA-792c-f5pf-pmxqLOWN/A
  • JavaScript logoJavaScript
  • ong-sementes-amanha
NoYesNov 22, 2026
GHSA-2xr2-jcwr-j926LOWN/A
  • JavaScript logoJavaScript
  • ong-sementes-amanha
NoYesNov 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management