Hi everybody
recently we have found that when creating a user, Nuxeo allows you to set some fields like firstName or lastName with HTML code. See examples below:
curl -X POST -H "Content-Type: application/json" -u Administrator:Administrator -d '{ "entity-type": "user", "id":"xssuser", "properties":{"username":"xssuser", "email":"xss@athento.com", "lastName":"XSS attack!", "firstName":"<script>alert(\"You have been hacked!\");</script>", "password":"xsspasswd" } }' <a href="http://localhost:8080/nuxeo/api/v1/user" target="test_blank" rel="nofollow noopener noreferrer">http://localhost:8080/nuxeo/api/v1/user</a>
will result in the following situation

It is also possible to include the same fields in the creation-user form vía UI.
When you try to search the user using the suggestion box (on the top-right corner of the page) you'll get the following message:

If you load the default search page and your compromising documents (users in this case) is included in the results page, the script code is also executed.

The same happens when you change dc:title field or any field listed in the search layout.
¿Is it any bugfix around this?
Thanks,