Skip to content

Security: wispsy/parse-rtf

Security

docs/security.md

Security boundaries

RTF is a complex container format and may contain active or externally referenced content. parse-rtf only tokenizes the input and projects ordinary text. It does not instantiate embedded objects, execute macros or fields, resolve links, read files, contact network resources, or render images.

Known non-text destinations such as \object, \pict, and \fldinst remain inert in the syntax tree and are omitted from Document.text. Unknown starred destinations are likewise omitted and surfaced as diagnostics. A field result group (\fldrslt) can be included as ordinary text, but its instruction is never executed.

The parser applies configurable maximum input, nesting, and node counts to bound resource use. Applications should still treat parsed text and diagnostics as untrusted input, apply their own output-encoding rules, and choose limits suitable for their workload. This package is not a document renderer or a malware scanner.

There aren't any published security advisories