Skip to content

Security: LowCode191/anx-format

SECURITY.md

Security policy

Reporting a vulnerability

Use GitHub's private vulnerability reporting for this repository (Security tab, "Report a vulnerability"). Please do not open a public issue for a suspected vulnerability. Include the package or input that triggers the problem, the command or API used, and the observed behavior. You should receive an acknowledgement within seven days.

Supported versions

Only the current Developer Preview line (0.4.x) receives fixes. Use 0.4.2 or later: it closes a script-execution path in the viewer and an authority bypass in the agent write tools (see CHANGELOG.md). There is no long-term support commitment before 1.0.

What the reference implementation defends

  • Package preflight runs before decompression and rejects traversal, absolute paths, empty segments, duplicate or undeclared entries, hash and size mismatches, encrypted entries, multi-disk archives, ZIP64, malformed offsets and declared expansion beyond the 0.4 safety profile (96 MiB compressed, 256 MiB expanded, 64 MiB per entry, 2,048 entries).
  • Manifest hashes and sizes are validated before canonical content is used.
  • The viewer serves canonical JSON, declared assets and a view it renders itself from the validated canonical document, read-only on the loopback interface. It never serves the package's stored view. The rendered view runs in a sandbox under a Content-Security-Policy that allows only the renderer's own script, assets other than common image types are sent as downloads, and requests with an unknown Host are refused. It has no mutation endpoint and strips unsafe link schemes.
  • The MCP servers confine paths to ANX_ALLOWED_ROOT, following symbolic links, require the expected revision for mutations and never accept private signing keys.
  • New transactions from a non-human actor cannot change release state, review approvals and decisions, human-approved relationships or human page-object corrections. Stored history is replayed as recorded and is not judged again.
  • Imported source bytes are immutable; OCR candidates are never promoted automatically.

What it does not claim

  • Docling and RapidOCR run as local subprocesses on untrusted input. Convert untrusted documents inside a sandbox or container; the importer is not a security boundary for those programs.
  • Finalization signatures prove possession of a key, not legal identity. Trust decisions belong to the verifier's trust store.
  • A package's stored views/document.html is a cache whose hash is checked, not its content. Another writer can store a view that differs from document.json, and a signature covers that view's hash. Render from the canonical document; humanViewStatus and humanViewMatchesCanonical report a mismatch.
  • The actor type on a transaction is asserted by its writer. The protected-metadata rule stops the agent tools, not a program with file access that claims to be human.
  • Text from an imported document is returned to models as it is. Treat it as untrusted input to the model.
  • Dependency audits are time-sensitive registry evidence, not a permanent clearance. Run npm audit against the lockfile you deploy.
  • No independent security audit or fuzzing campaign has been completed. Hostile-package fuzzing is on the roadmap and contributions are welcome.

There aren't any published security advisories