We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uiSchema
core
5.x
HTML tags inside JSON schema property names are output as HTML when rendered in error messages.
HTML tags are disallowed or escaped when rendering JSON property names in error messages.
{ "type": "object", "properties": { "xss<iframe srcdoc={'<script>alert(document.domain)</script>'}>": { "type": "string", "title": "Comment<a>link</a>" } }, }
{ "xss": { "ui:widget": "textarea" }, "ui:order": [ "test" ] }
No response
Solution: Pass in disableParsingRawHTML to the <Markdown> component to prevent HTML from being rendered in the error message.
disableParsingRawHTML
<Markdown>
react-jsonschema-form/packages/core/src/components/fields/ObjectField.tsx
Line 267 in 7f54d45
Playground
The text was updated successfully, but these errors were encountered:
@davidli16 Thanks for the issue and the fix. One small update to the PR and we will merge and close this issue.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Prerequisites
What theme are you using?
core
Version
5.x
Current Behavior
HTML tags inside JSON schema property names are output as HTML when rendered in error messages.
Expected Behavior
HTML tags are disallowed or escaped when rendering JSON property names in error messages.
Steps To Reproduce
Environment
No response
Anything else?
Solution: Pass in
disableParsingRawHTML
to the<Markdown>
component to prevent HTML from being rendered in the error message.react-jsonschema-form/packages/core/src/components/fields/ObjectField.tsx
Line 267 in 7f54d45
Playground
The text was updated successfully, but these errors were encountered: