Find Paths.get("..." + input) calls

Proprietary

Same path-traversal risk as File(...) concatenation. Resolve against a fixed base with Path.resolve(name) plus an explicit normalize().startsWith(base) check.

org.openrewrite.kotlin.security.FindPathsGetWithConcat$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.security.FindPathsGetWithConcat$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.