Skip to content

fix: Fix the storage of sanitized project name - EXO-86231#599

Merged
azayati merged 1 commit into
feature/maintenancefrom
fix/86231
May 7, 2026
Merged

fix: Fix the storage of sanitized project name - EXO-86231#599
azayati merged 1 commit into
feature/maintenancefrom
fix/86231

Conversation

@azayati
Copy link
Copy Markdown
Member

@azayati azayati commented May 7, 2026

Prior to this change, when creating or editing a task project, a JavaScript payload inserted in the name field could be executed when the task project is deleted, leading to an XSS vulnerability, this is already fixed with a previous commit by storing a sanitized project name which is not coherent with the architectural choice made is: Sanitize OnRead from DB and not altering data OnWrite on DB. After this commit, we ensure to sanitize the project name only when getting projects and not when storing them.

Resolves Meeds-io/si#11

Comment thread services/src/main/java/org/exoplatform/task/rest/ProjectRestService.java Outdated
Prior to this change, when creating or editing a task project, a
JavaScript payload inserted in the name field could be executed when the
task project is deleted, leading to an XSS vulnerability, this is
already fixed with a previous commit by storing a sanitized project
name which is not coherent with the architectural choice made is: Sanitize OnRead from DB and not altering data OnWrite on DB.
After this commit, we ensure to sanitize the project name only when
displaying the delete confirmation popup and not when storing projects.

Resolves Meeds-io/si#11
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 7, 2026

@azayati azayati requested a review from boubaker May 7, 2026 15:17
@azayati azayati merged commit 2879d86 into feature/maintenance May 7, 2026
11 checks passed
@azayati azayati deleted the fix/86231 branch May 7, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants