Skip to content

Commit f828de8

Browse files
committed
chore(release): 3.0.4
1 parent e4056ff commit f828de8

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
<a name="3.0.4"></a>
2+
## [3.0.4](https://github.com/kolkov/angular-editor/compare/v3.0.3...v3.0.4) (2025-12-18) - Security Hotfix
3+
4+
### Security
5+
* **CRITICAL:** Fixed XSS vulnerability in `toggleEditorMode()` method ([#580](https://github.com/kolkov/angular-editor/issues/580)) ([#587](https://github.com/kolkov/angular-editor/pull/587))
6+
- XSS could execute when switching from HTML source mode back to WYSIWYG
7+
- User-entered HTML was set via innerHTML without sanitization
8+
- Sanitization now properly applied in both code paths
9+
- Thanks to @MarioTesoro for finding the root cause and submitting the fix
10+
11+
### Note
12+
v3.0.3 fix was incomplete - it only covered `refreshView()` but not `toggleEditorMode()`. This release provides complete XSS protection.
13+
14+
### Upgrade Recommendation
15+
**IMMEDIATE UPGRADE RECOMMENDED** for all users. This release completes the security fix started in v3.0.3.
16+
17+
---
18+
119
<a name="3.0.3"></a>
220
## [3.0.3](https://github.com/kolkov/angular-editor/compare/v3.0.2...v3.0.3) (2025-01-22) - Security Hotfix
321

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kolkov/angular-editor",
3-
"version": "3.0.1",
3+
"version": "3.0.4",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",

projects/angular-editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kolkov/angular-editor",
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"description": "A simple native WYSIWYG editor for Angular 20+. Rich Text editor component for Angular.",
55
"author": "Andrey Kolkov <a.kolkov@gmail.com>",
66
"repository": "https://github.com/kolkov/angular-editor",

0 commit comments

Comments
 (0)