JOUST is an experimental research project. Do not use it in production or with real funds on Cardano mainnet. Its validators are compiled by JuLC, which is experimental too.
If you find a security vulnerability in JOUST, please report it privately:
- Do not open a public GitHub issue, discussion or pull request for it.
- Email your report to security at bloxbean.com.
- Include:
- a description of the vulnerability and the affected module or package (and version or commit);
- steps to reproduce: ideally a contract and a transaction, or a failing test (the on-chain harness,
StateHarness, and the attack suite injulc-state-testkitare good starting points); - the impact, for example a validator that accepts a transaction it should reject, or locked or stolen funds;
- a suggested fix, if you have one.
We will acknowledge your report and keep you informed while we investigate and fix it.
The decoders of data an attacker writes on chain (ValueAdapterFuzzTest, AddressAdapterFuzzTest and
MemoFuzzTest: values, addresses, memos) are fuzzed locally only. Public CI only replays their committed inputs and never
uploads their failure records, because a finding there can be a vulnerability and this repository's logs and artifacts
are public (as JuLC's ADR-063 D13 decides for its own decoders). If one of them fails for you, report it here before you
commit its input or open an issue. The other fuzz targets (the five-way differential, the IR readers, NODE_OPTIONS) are
fuzzed in public CI and in the long campaigns (build.yml's fuzz-long), and their findings are published like any test failure.
docs/contributing/reviewing.md §3 has the details.
Security-relevant issues include:
- Generated validators: a validator generated by
julc-state-processor(from Java or.jsc) that accepts a transaction breaking one of the invariants it is meant to enforce: the thread token, the exact datum and value, the caller's signature, payouts, owned and keyed objects, MerkleMap claims, batched intents, params, quorums or composition. - Off-chain checks that protect a signer: the JavaScript page verifier in
@julclang/state-clientand@julclang/joust-runtime(what a CIP-30 wallet is asked to sign), the designated-input retry records, and the prepare service (julc-state-server). - Divergence between the JVM and on-chain: the same contract method computing a different result on the JVM than in its compiled script, where that lets a transaction through or locks funds.
- Serialization: datum, redeemer or transaction encodings that produce invalid or ambiguous on-chain data.
- Supply chain: the published Maven artifacts (including the Gradle plugin
org.julclang.joust), the npm packages and their Wasm engines, the nativejoustbinaries and their Homebrew formula, and the release workflows. - The
joustcommand lines (ADR-0017): running project code that the user did not ask for (for example fromjoust --versionorjoust deploy --help), a project or a shared directory choosing whatjoust newdownloads or runs, or the native CLI running a project command with its own implementation instead of the project's.
Out of scope:
- Compiler bugs in JuLC itself: report them to JuLC (see its SECURITY.md). If you are not sure which project is affected, report to the address above.
- Limits documented in the ADRs (
docs/adr/), unless they affect fund safety in a way the ADR does not describe. - Script size, execution budgets and performance.
- The example contracts under
examples/used as they are: they demonstrate features and are not audited. - Feature requests.