Skip to content

Harden SVG imports #13

@jamesbconner

Description

@jamesbconner

Strip <script> tags, event handlers (onload=...), external references, and other potentially dangerous constructs
Maybe a strict allowlist of elements/attributes when --css injection is enabled
Add a --strict mode that refuses unsafe SVGs and a --sanitize mode that cleans them

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions