Skip to content

v3.43.2: runtime coverage security fix and Angular and enum false positives

Choose a tag to compare

@BartWaardenburg BartWaardenburg released this 16 Nov 22:22
· 345 commits to main since this release
Immutable release. Only release title and notes can be modified.
v3.43.2
b6a3e04

Security

  • Runtime coverage no longer starts a package manager to find the fallow-cov sidecar. Before, sidecar discovery ran yarn bin, pnpm bin, bun pm bin or npm root in the analyzed project. A package manager reads config from the project, for example .yarnrc yarn-path, .yarnrc.yml yarnPath and plugins, or .pnpmfile.cjs. As a result, a repository could run its own code when you analyzed it with --runtime-coverage. This happened before the sidecar signature check. Fallow now looks only in fixed install locations:

    • the @fallow-cli/fallow-cov-<platform> package in node_modules;
    • the pnpm and Bun stores, and the Yarn unplugged folder;
    • node_modules/.bin, ~/.fallow/bin and PATH.

    This applies to health, audit and security with --runtime-coverage, to the MCP runtime-coverage tools, and to the sidecar check of fallow coverage setup. Thanks @hgrgr for the report. (GHSA-m9pr-74q6-w362)

Bug fixes

  • Runtime coverage finds the sidecar in a Yarn Plug'n'Play project. Fallow now reads the signed binary from .yarn/unplugged. In 3.43.1, discovery stopped at the unsigned wrapper, and the run failed with a signature error.

  • An unsigned node_modules/.bin/fallow-cov wrapper no longer hides a working sidecar. Discovery now continues to ~/.fallow/bin and PATH. It uses the wrapper only when no other location has a sidecar, so the signature error names the file that exists. Before, a pnpm project with a custom virtualStoreDir failed with a signature error even when ~/.fallow/bin/fallow-cov was installed.

  • fallow dead-code no longer reports enum members that code reads through an alias, or the members of an enum that code passes as a whole value. Fallow now counts a member as used when code reads it through const Alias = Color, or through a class field such as protected readonly levels = Level and this.levels.High. The same applies to an Angular template that reads that field. When code passes the whole enum as a value, as in takesEnum(Shape) or { ref: Size }, each member counts as used, as with Object.values(Shape). A typeof E, for example in keyof typeof E, counts as a use of every member of E. Members that no alias reads are still reported. Thanks @mattlewis92 for the report. (#4578)

  • unused-component-inputs and unused-component-outputs find member reads in more Angular template syntax. The template scanner now counts a member as used in these places:

    • a pipe argument, and an interpolation in a plain attribute;
    • a keyed structural directive clause, and the condition of @else if;
    • a style binding with a % unit, and an explicit this. or this!. read;
    • the head of an ICU message, and a host binding value in backticks.

    A component member with the same name as a @for loop item elsewhere in the template is no longer hidden. An ICU case that opens into an interpolation no longer stops the scan. Thanks @mattlewis92 for the report. (#4576)

  • Fallow counts the inputs and outputs of a base class as used from a subclass in another file. The subclass can extend the base class directly, through an intermediate class, or through a re-export. Its class body and its template now count the inputs and outputs that the base class declares. Thanks @mattlewis92 for the report. (#4577)

  • A Homebrew or cargo install binary now names a companion install that works for it. Such a binary has no npm launcher, so it does not find a global npm companion. When fallow-type-aware is missing on macOS or Linux, the message names FALLOW_TYPE_AWARE_BIN with the global npm path. On Windows, it names the npm install of fallow. When fallow-similar-code is missing, the message names the release archive and the directory of the binary. The npm install keeps its messages and its companion lookup. (#4609)

  • fallow agent install no longer registers fallow mcp-server for a binary that cannot serve MCP. The Homebrew and cargo install fallow-cli binary has no mcp-server subcommand, but it answers fallow mcp-server --version with exit code 0. The MCP step then printed a codex mcp add command that failed. The step now accepts the running binary only when the answer comes from the MCP server. Without another launcher, the step skips with mcp_entry_unavailable, and its message names cargo install fallow-mcp and the release archive. (#4627)

Upgrade notes

  • If you use --runtime-coverage on repositories that you do not control, update to this release. Versions 2.39.0 to 3.43.1 can run code from the analyzed repository while they look for the fallow-cov sidecar. See the security fix above. On an older version, set FALLOW_COV_BIN to a signed fallow-cov binary.

Full Changelog: v3.43.1...v3.43.2