Skip to content
New issue

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

Description fields can pass validation with only whitespaces #1053

Closed
jdaigneau5 opened this issue Apr 21, 2023 · 0 comments
Closed

Description fields can pass validation with only whitespaces #1053

jdaigneau5 opened this issue Apr 21, 2023 · 0 comments
Assignees

Comments

@jdaigneau5
Copy link
Collaborator

Summary

In the 5.0 schema, descriptions fields for cna.container, problemTypes, and rejectedReasons have a minimum length of 1. However, whitespaces fulfill this requirement, allowing descriptions to effectively be blank and validate successfully. This should be changed at the schema level, but in the meantime can be hot fixed in Cve-services.

Definition of Done

  • Create new validator to check description fields for at least one, non whitespace character
  • Apply validator to cna.container.descriptions , cna.container.problemTypes, cna.container.rejectReasons
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

No branches or pull requests

1 participant