pypi semgrep 1.188.0
Release v1.188.0

2 hours ago

1.188.0 - 2026-12-02

### Changed

  • The --x-parmap flag, which selects process-based parallelism instead of the default multicore parallelism, is deprecated and will be removed soon. Semgrep now prints a warning when it is used. (deprecate-x-parmap)

  • In patterns, $...X inside an array, list or tuple literal (e.g. [1, $...REST]) now binds the remaining elements, as it already does among call arguments: the binding can be reused ([$...A, 3, $...A]) and interpolated in messages and fixes, and metavariable-pattern can search it with language: generic (as for foo($...ARGS)). Previously $...X there was read as a plain identifier and matched nothing. ... inside a list or tuple pattern (e.g. OCaml [1; ...; 9], Scala case (1, ..., 9) =>) now stands for any number of elements instead of exactly one. (list-metavar-ellipsis-and-dots)

  • Rule paths.include and paths.exclude patterns containing a non-trailing slash (such as 'a/b') now match relative to the project root. The deprecation warning about this behavior has been removed. If you were still relying on this behavior, change anchored patterns to '**/a/b' to match at any depth. Basename patterns such as 'test.py' continue to match at any depth. (CODE-9881)

  • javascript grammar update (v0.25.0):

    • JavaScript, TypeScript, and TSX parsing now represents using and await using resource declarations explicitly, preserving multiple declarators, type annotations, initializers, and disposal mode.
    • JavaScript, TypeScript, and TSX parsing now supports using and await using bindings in for...of and classic for loops, retaining the binding, iterable, body, and resource disposal mode.
    • A using pattern does not match await using, and a const pattern does not match a using binding.

    (javascript-v0.25.0)

  • OCaml target parsing now supports OCaml 5.2 through 5.4 syntax (via tree-sitter-ocaml v0.24.2), including raw and Unicode identifiers, local opens in types, effect-handler cases, short dependent functor types, and labeled tuples. Writing these newer constructs directly in rule patterns remains unsupported. (ocaml-v0.24.2)

  • PowerShell parsing and pattern matching now support tree-sitter-powershell v0.26.6, including bare -/-- arguments, digit-suffixed flags and attached option values (e.g., -A5, --pretty=format:"%B %s"), comma-separated unquoted argument lists, postfix & background pipelines, and single-quoted command-name suffixes (e.g., Invoke-'Tool'). (powershell-v0.26.6)

  • Updated the Rust grammar (via tree-sitter-rust v0.24.2) to improve parser error recovery when parsing repeated string literals, such as inside macro bodies. (rust-v0.24.2)

  • Update the Scala grammar to v0.25.1, improving parsing of match types, lambdas, given signatures, and constructor argument clauses. (scala-v0.25.1)

  • The bundled tree-sitter C runtime and regenerated parsers now use tree-sitter 0.26.11. (tree-sitter-0.26.11)

### Fixed

  • Fix baseline scans in dirty working directories incorrectly reporting existing Supply Chain findings or suppressing new findings. (baseline-rpc-context)
  • Improved analysis of exported and declared TypeScript namespaces and of interface fields. (typescript-namespace-declarations)
  • Pro: Semgrep Supply Chain now uses the shared uv.lock to identify direct runtime dependencies across uv workspace members, including workspaces without a root [project] table. (uv-workspaces)
  • Fix C++ parsing for pointer-to-member declarations, function parameters, and template parameters. (CODE-10071)
  • Fixed duplicate progress updates that could make the scan progress bar reach 100% before analysis finished. (CODE-10334)
  • TypeScript: Fixed parsing of generic calls and instantiations with typeof import(...) type arguments. (CODE-10338)
  • TSX: Fixed parsing of bare & characters and 6-to-7-digit numeric HTML character references in JSX. (CODE-10339)
  • TypeScript: Fixed parsing of class static initialization blocks (static { ... }). (CODE-10340)
  • Pro C/C++: Fixed parse failures on #if/#ifdef/#else blocks whose branches each contain unbalanced delimiters (such as split function or statement headers opening {). (CODE-10365)
  • Pro: Semgrep Supply Chain now parses uv.lock when [project] in pyproject.toml omits the optional dependencies key. (SC-3644)

### Infra/Release Changes

  • Updated tree-sitter-requirements grammar to v0.6.1. (requirements-v0.6.1)

Don't miss a new semgrep release

NewReleases is sending notifications on new releases.