Here is an essay exploring how these vulnerabilities manifest and how to secure them. The "Silent" Vulnerability: XSS in Bootstrap 5.1.3
If a component uses an attribute like data-bs-content and doesn't sanitize it, an attacker might inject a script:
In this example, the attacker injects a malicious onclick event handler, which would execute the alert('XSS!') JavaScript code when the user interacts with the affected element.