# Security policy

## Supported versions

Only the latest published 0.x release of the `@umis/*` packages receives security fixes. All packages share one version
number, so a fix ships as a new release of every package.

| Version             | Supported |
| ------------------- | --------- |
| latest 0.x release  | yes       |
| any earlier release | no        |

## Reporting a vulnerability

Report it privately through GitHub private vulnerability reporting: the **Security** tab of this repository, then
**Report a vulnerability** ([direct link](https://github.com/ishtvankomka/umis/security/advisories/new)). Do not open a
public issue, pull request or discussion about a vulnerability.

A useful report names the package and version, describes the problem and its impact, and shows how to reproduce it,
ideally as a failing vitest case. Say whether you would like to be credited.

## What happens next

- You receive an acknowledgement within 7 days.
- The report is assessed and, when confirmed, fixed in a new release; you are kept informed while the work goes on.
- Disclosure is coordinated: the advisory is published when the fix is released, and at the latest 90 days after the
  report, unless the reporter and the maintainer agree on another date.
- Reporters are credited in the advisory if they wish.
- There is no bug bounty.

## Scope

In scope are the packages in this repository, the UMIS profile v1 as written in [docs/profile-v1.md](docs/profile-v1.md)
and the test vectors. A way around one of the invariants in [docs/security-model.md](docs/security-model.md) is a
vulnerability.

The following are documented properties, not vulnerabilities: the limits listed in
[docs/limitations.md](docs/limitations.md) and under "What is not guaranteed" in the security model (for example, a
revocation can stay unseen by an offline verifier for up to S, and a one-way QR code can be relayed within its 30
seconds); the keys and seeds of the demo world in `@umis/testkit`, which are public on purpose; and a relay emulator
started with `--no-signature`.
