Security fixes are made on the main branch and shipped in the latest published release of LLM4S (see
Releases). Older releases are not patched, so please upgrade to the latest
release before reporting, and say in your report which version you tested. The current lines and their status are in the
support policy.
How a fix may change the API follows the compatibility policy:
- Before the compatibility baseline (0.5.x now), any release may break source or binary compatibility, so a security fix may too. The break is listed under the CHANGELOG's Breaking changes with a migration note.
- After the baseline, a fix to a Frozen module ships in a patch release without a binary-breaking change wherever that is possible. If closing the vulnerability needs a breaking change, it ships in the next minor (before 1.0) or major (from 1.0) release, with a migration note.
- Beta and Experimental modules (see 1.0 Scope) are fixed in the same way, but a fix may change their API in a minor release.
Every published llm4s-* module has the same version, so "the latest release" means the same version for every
module.
Please do not describe a vulnerability in a public issue, pull request, discussion or Discord message. Report it privately:
- GitHub private vulnerability reporting (preferred). Open the repository's Security tab and choose Report a vulnerability.
- If that option is not available, ask a member of the Security Committee for a private channel on the LLM4S Discord. Say only that you have a security report and keep the details out of the public channels until a private one is open.
Useful details:
- the affected module and version (for example
llm4s-openaiat the version you tested); - what an attacker can do, and what they need first (a configuration, a prompt, a file on disk);
- the smallest code or configuration that reproduces it;
- a suggested fix, if you have one.
Please do not include real credentials or other people's data in a report.
Reports are handled on a best-effort basis, and we will keep you informed in the private thread. We ask for reasonable time to prepare a fix before the issue is made public, and we will credit you in the release notes if you wish.
In scope: the code in this repository and the llm4s-* artifacts published from it.
The built-in tools that read and write files, run programs and make HTTP requests are security-sensitive by design. How to configure them safely, and the limits that remain, are described in the built-in tools guide (see Safety: what each tool can do) and in the security reference.
Those pages are open about limits that are inherent in the design. For example, the path settings are a filter and not a sandbox, a symbolic link inside an allowed directory is not a security boundary, the shell tool is not covered by the file settings and inherits the environment of the process, and the HTTP check can be passed by DNS rebinding. Please report such things privately all the same. A demonstrated way around a guard that the guide says is enforced, or a disclosure or escape that the guide does not warn about, is a vulnerability. A limit that the guide already documents is a hardening request, and we may discuss and fix it in public once we have agreed that with you. Running a tool with a configuration you chose to make permissive is not a vulnerability. If you are not sure which of these you have, report it privately: we would rather hear about it.
Out of scope:
- Vulnerabilities in a model provider's own API or service. Report those to the provider.
- Vulnerabilities in a third-party dependency that have no effect on LLM4S users. Report those upstream. A dependency vulnerability that does affect LLM4S users is welcome as a report.
- Prompt injection that gets past the regular-expression detector. The security reference documents it as a known risk with residual risk, a defence-in-depth layer and not a guarantee. A report is in scope when LLM4S code fails to apply a mitigation that the reference says it applies.
For secure-coding expectations on contributions, see the security checklist in the security reference.
Each GitHub Release carries a CycloneDX SBOM for every published module, and the dependencies are scanned for known advisories with OSV-Scanner every week and on each pull request that changes them; a pull request that adds a HIGH or CRITICAL advisory fails. See Software Bill of Materials.