Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to sanitize rendered SVGs #8

Merged
merged 8 commits into from
Oct 23, 2023

Conversation

felixvanoost
Copy link
Owner

Adds a minimal-effort SVG sanitizer that removes all <script> elements from the diagrams rendered by Kroki. This is most definitely not secure, but better than nothing. 🤷🏻‍♂️

@felixvanoost felixvanoost linked an issue Oct 23, 2023 that may be closed by this pull request
@felixvanoost felixvanoost merged commit ede514c into main Oct 23, 2023
1 check passed
@felixvanoost felixvanoost deleted the 7-attempt-to-sanitize-rendered-svgs branch October 23, 2023 00:44
@felixvanoost felixvanoost self-assigned this Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Attempt to sanitize rendered SVGs
1 participant