Security
Reporting a vulnerability
Please use GitHub's private vulnerability reporting for this repository: https://github.com/afonsoocamacho/Subtly/security/advisories/new
If private reporting is unavailable, open an issue asking the maintainer for a private contact channel. Do not include exploit details, credentials, personal information or access tokens in a public issue.
Include the affected version, the relevant utility, a minimal reproduction, the impact and any suggested mitigation. The latest published version is the supported version. An acknowledgement time is not guaranteed.
Package boundaries
Subtly runs in the browser. It does not provide authorization, server validation, payment guarantees, idempotency or an HTML sanitizer. Validate and authorize operations on the server. Render untrusted values as text, and use a maintained sanitizer when HTML is required.
Use draft recovery only with an explicit allowlist of non-sensitive fields. Session storage is readable by scripts on the same origin. Clear drafts on logout and after successful saving. Cache only non-sensitive reads. Prefetch only safe same-origin GET pages.
Repository safeguards
- GitHub Actions are pinned to verified upstream commit SHAs.
- CI and documentation builds use read-only repository permissions. Only deployment receives Pages and OIDC write permissions.
- Dependency audits, a repository policy check and CodeQL run automatically. Dependabot proposes npm, Python and Actions updates.
- The package has an explicit published-file allowlist. Documentation dependencies are development dependencies and are not shipped with the library.
- Documentation scripts and UI assets are served locally. A content security policy restricts scripts to the same origin and blocks form submission, plugins and external base URLs. Inline styles are permitted for positioning and motion demos; inline scripts and eval are not.
- GitHub package publishing runs manually on main, after tests and package checks. The npm registry is not published to by this repository's workflows.
Maintainer settings
The repository files cannot enforce account or organization settings. Maintainers should enable private vulnerability reporting, secret scanning and push protection where available, protect main with review and required checks, and require two-factor authentication. Review publishing access and use npm trusted publishing when configured. Never commit a registry token.
Automated scans reduce risk but do not prove that code is free of vulnerabilities.