Repository navigation
modelpin 0.3.1 — security release
This is a security release. A review of 0.3.0 found six issues; all six are fixed. One of them — the baseline transcript — affects every version this project has released, not only 0.3.0.
If you use the GitHub Action
The first issue below let a model's output put a link into the comment our Action posts on your pull request. The fix is in the Modelpin package, so:
samarthputhraya/modelpin@v1and you never setmodelpin-spec→ your next run installs 0.3.1 and picks the fix up. Nothing to do.- You pinned
modelpin-spec(modelpin[providers]==0.3.0, or a git ref) → you must bump it. You will not get the fix otherwise.
Comments already posted by an affected run are not rewritten. Delete any you do not trust.
We know of no exploitation, and of no installation of the Action outside this repository. We have no telemetry, so that is an absence of evidence rather than a guarantee.
If you have ever committed a baseline
Read this even if you are on an old version. [M] Every release from 0.1.0 through 0.3.0 stored your full prompt transcript inside .modelpin/baseline-*.json, and actions/README.md has instructed git add … .modelpin/ since 0.1.2. A key placed in a 2-scenario baseline's prompt appeared 10 times in the file.
If that file is in a public repository, it contains your prompts. Two things, in this order:
- Rotate any credential that appeared in a prompt. Assume it is public. This is the only remedy that does not depend on rewriting history.
- Re-record with
modelpin baseline. This does not remove the old prompts — a new commit leaves the previous blob reachable in git history, in every existing clone and fork, and through the GitHub API. Purging it needsgit filter-repoand a force-push, and even then forks and caches may retain it.
0.3.1 no longer stores the transcript at all — nothing in the comparison ever read it. A re-recorded baseline still holds the model's output text and the arguments of every tool call, verbatim, by design. The Action README now says exactly what each committed file holds and when not to commit it.
The six
- A model could inject a link, image or HTML into the PR comment. Tool names come from the model, which can hallucinate one.
[M]A tool name ofescalate[Build passed - view logs](https://…)rendered as a masked link — a forged CI banner, linking anywhere, posted by our bot into your pull request. Model ids frommodelpin.yaml, which a pull request can edit, reached the same comment unescaped at 29 sites including every verdict header, plus 9 in the published Report. Everything untrusted is now escaped, and the tests check the rendered page rather than the source. One residual, stated rather than hidden: those tests render CommonMark, which does not linkify a bare URL, while GitHub's GFM does — the escaping targets that too, but it is unconfirmed on a real rendered comment. - Baselines stored every prompt. Above.
modelpin scancould report files outside the directory you pointed it at, through a Windows directory junction, which needs no privilege to create. Only paths, line numbers and model ids were shown, on your own terminal; no file content was read into the output and nothing was transmitted. A path can itself be sensitive, which is why this is fixed rather than accepted.modelpin scancould appear to hang on a minified bundle. The per-line de-dupe was quadratic in matches per line, and a bundle is one enormous line.[M]Before: 4 KB 0.03 s, 8 KB 0.10 s, 16 KB 0.56 s — quadrupling per doubling. Now linear: 96 KB in 0.08 s. Files over 5 MB are skipped and named, never skipped silently.- Error messages missed six credential shapes — AWS access key ids, GitHub tokens, PEM private keys, Azure storage keys. Now redacted. Keys with no distinctive prefix (Azure OpenAI's bare hex, for instance) are still not recognised, and the README says so rather than claiming a failed call "never leaks your key", which it previously did.
- The Action referenced two third-party actions by movable tag. Both are pinned to the exact commit their tags pointed to, so nothing you run changed — it just can no longer change underneath you.
[M] 2026-09-11The first dependency vulnerability scan this project has run found no known vulnerability in whatpip install "modelpin[providers]"installs — 40 packages on Linux, 41 on Windows — as of that date, against the databases the audit queried then. A CVE published later changes that answer, which is why CI now runs the same audit on every change, blocking.
Everything in 0.3.0 is still here, including the breaking baseline fingerprint. Full detail: CHANGELOG.md.