You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JNotes field allows unsafe HTML/CSS/JS content to be stored and rendered in Contacts → Persons module.
Issue Description
User-supplied input entered in the Notes section of the Contacts → Persons module is stored persistently and rendered when the record is viewed by other users. Crafted HTML, CSS, and JavaScript markup is accepted and displayed, indicating inconsistent or insufficient context-aware output encoding. This behavior results in unsafe rendering of user-controlled content across user roles, including administrators.
Preconditions
**
Framework Version: Krayin CRM v2.1.6
Commit ID: Not specified (latest release at time of testing)
Environment:
OS: Linux / Windows (local setup)
PHP: 8.1+
Browser: Chrome / Firefox**
Steps to reproduce
Log in to Krayin CRM as any authenticated user.
Navigate to Contacts → Persons.
Create or open an existing Person record.
4 .Go to the Notes section and click Add Note.
Insert crafted HTML/JS content into the Note (example payload used during testing).
6 . Save the note.
Refresh the page or view the same record as another user (including admin).
Expected result
**
User input in the Notes field should be safely handled.
HTML/JavaScript markup should be properly sanitized or contextually escaped.
Unsafe user-controlled content should not be rendered in the UI.**
Recording.2026-01-08.013957.mp4
Bug report
Title
JNotes field allows unsafe HTML/CSS/JS content to be stored and rendered in Contacts → Persons module.
Issue Description
User-supplied input entered in the Notes section of the Contacts → Persons module is stored persistently and rendered when the record is viewed by other users. Crafted HTML, CSS, and JavaScript markup is accepted and displayed, indicating inconsistent or insufficient context-aware output encoding. This behavior results in unsafe rendering of user-controlled content across user roles, including administrators.
Preconditions
**
Framework Version: Krayin CRM v2.1.6
Commit ID: Not specified (latest release at time of testing)
Environment:
Steps to reproduce
4 .Go to the Notes section and click Add Note.
6 . Save the note.
Expected result
**
User input in the Notes field should be safely handled.
HTML/JavaScript markup should be properly sanitized or contextually escaped.
Unsafe user-controlled content should not be rendered in the UI.**
payload
test
Actual result
User-controlled input is stored persistently in the database.
Stored content is rendered when Notes are viewed.
HTML and CSS markup are displayed as part of the Notes view.
Output encoding appears inconsistent, allowing unsafe markup to be rendered across users.**
Recording.2026-01-08.013957.mp4