Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Encode HTML in JSON output #5

Open
3 tasks
cgi1 opened this issue Nov 18, 2021 · 2 comments
Open
3 tasks

Encode HTML in JSON output #5

cgi1 opened this issue Nov 18, 2021 · 2 comments
Assignees

Comments

@cgi1
Copy link
Contributor

cgi1 commented Nov 18, 2021

  • CSAF producers SHOULD NOT emit messages that contain HTML, even though all variants of Markdown permit it. To include HTML, source code, or any other content that may be interpreted or executed by a CSAF consumer, e.g. to provide a proof-of-concept, the issuing party SHALL use Markdown's fenced code blocks or inline code option.

Source: Safety, Security, and Data Protection Considerations

A/C:

  • Check for HTML content in XML input
  • Encode the HTML input for the JSON output
  • Write CI/CD test case, where the encoding is checked for a sample file containing HTML
@cgi1 cgi1 changed the title Reject CVRF input file if HTML is inside Encode HTML in JSON output Dec 2, 2021
@cgi1
Copy link
Contributor Author

cgi1 commented Dec 3, 2021

valid encoding from TC is markdown, so please just add a markdown codeblock around it.

@cgi1
Copy link
Contributor Author

cgi1 commented Feb 14, 2022

lower prio.

@pixelkunst-net pixelkunst-net mentioned this issue Feb 21, 2022
9 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants