Skip to content

Security: ThorFuchs/Swift-Highlight

SECURITY.md

Security policy

Supported versions

For published releases, security fixes are intended for the latest minor version of the current major version. No backport or response-time guarantee is made.

Report a vulnerability

Do not post a suspected vulnerability, sensitive input or exploit publicly. Use the repository Security tab to report a vulnerability privately or create a private advisory. If this route is unavailable, contact the maintainer through a private channel without publishing sensitive details.

Include the package version or commit, platform and Swift toolchain, the API and language used, a minimal non-sensitive reproducer, and expected and observed behavior. A problem that also reproduces in the pinned upstream project may also need an upstream report under its security policy.

Scope and limits

HTML source text and class values are escaped or validated by the HTML renderer, but the package does not sanitize surrounding HTML. The engine uses regular expressions and enforces no hard time or input-size limit; synchronous regex execution cannot be forcibly interrupted by task cancellation. Callers handling untrusted inputs need their own resource controls. Crashes, incorrect range validation, escaping failures and unexpected unbounded behavior should be investigated. See API contracts.

There aren't any published security advisories