lm-sys / lm-sys/FastChat

HTML isn't escaped in chat prompt

Open
#2,795 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

I entered:

`hello`

in the prompt field at https://chat.lmsys.org, submitted it, and was surprised to see the HTML rendered in the prompt and in the answer.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior at https://chat.lmsys.org by submitting the reported hello input in the prompt field. Trace the chat prompt rendering entry point and verify that the submitted markup is displayed as literal text rather than rendered HTML in both the prompt and answer.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.