Default configuration allows the injection of CSS that applies outside of the Mermaid diagram. This occurs through the `fontFamily`, `themeCSS`, and `altFontFamily` configuration options, exploiting how stylis handles scope references. Specifically, using `:not(&)` escapes automatic scoping, allowing styles to be applied to all page elements. Additionally, global at-rules such as `@font-face`, `@keyframes`, and `@counter-style` can be injected as they are hoisted to the top level. This can lead to page defacement and the exfiltration of DOM attributes using CSS `:has()` selectors.