@kolkov/angular-editor before 3.0.4 XSS via toggleEditorMode()
- State
- Published
- Severity
- 5.3 Medium
- Published
- Nov 14, 2026
- Updated
- Nov 16, 2026
- Reserved
- Nov 14, 2026
Description
@kolkov/angular-editor before 3.0.4 contains a cross-site scripting vulnerability in toggleEditorMode() that assigns source view text to innerHTML without DomSanitizer sanitization. Attackers can induce users to paste HTML with event handlers such as img onerror into source mode, executing script in the application's origin when toggling views.
| Product | Versions |
|---|---|
| angular-editor kolkov | before 3.0.4 Affected3.0.4 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.3 Medium | VulnCheck | |
| 3.1 | 6.1 Medium | VulnCheck |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- GitHub Issue #580Issue Tracker
- https://github.com/kolkov/angular-editor/pull/587Issue TrackerPatch
- Patch CommitPatch
- Unsanitized innerHTML in toggleEditorMode at v3.0.3Technical Details
- angular-editor v3.0.4 Release NotesRelease Notes
- https://github.com/kolkov/angular-editorProduct Page
- VulnCheck Advisory: @kolkov/angular-editor before 3.0.4 XSS via toggleEditorMode()Third-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.