Skip to content

Conversation

raphaelahrens
Copy link
Contributor

It was possible to inject html markup in the label of a dot node. This lead to the error observed in #278.

This fix is currently only for the label attribute. Other attribute might be affected as well.

It was possible to inject html markup in the label of a dot node.
This lead to the error observed in OWASP#278.

This fix is currently only for the label attribute.
Other attribute might be affected as well.
@raphaelahrens raphaelahrens requested a review from izar as a code owner October 8, 2025 08:03
@izar
Copy link
Collaborator

izar commented Oct 8, 2025

I thought injecting HTML in the labels was a feature, not a bug, to give people more latitude in formatting their diagrams. Am I wrong?

@raphaelahrens
Copy link
Contributor Author

If it is a feature it needs to be documented. Since this was news to me.
But is this feature supported by all output formats in the same way?

The html in dot is just a reduced set of html and so has no security implications.
Maybe "inject" sounded a bit too much like a security problem :D, but it it most fitting to describe the bugin #278.

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.

2 participants