-
Notifications
You must be signed in to change notification settings - Fork 18
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
apidom-reference: FileResolver disabled by default #2154
Comments
@char0n just mentioning for future reference that if I get it right this would probably affect behavior in FS based environments, like IDE extensions e.g. https://github.com/swagger-api/apidom-lsp-vscode (added this ticket) |
✔️ This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory. |
Refs #2154 BREAKING CHANGE: FileResolver will not detect and process any local file unless explicitly allowed by fileAllowList option
@frantuma yes - it will be a breaking change, but the behavior can be explicitly turned on again and work exactly as before. |
Refs #2154 BREAKING CHANGE: FileResolver will not detect and process any local file unless explicitly allowed by fileAllowList option
Refs #2154 BREAKING CHANGE: FileResolver will not detect and process any local file unless explicitly allowed by fileAllowList option
Refs #2154 BREAKING CHANGE: FileResolver will not detect and process any local file unless explicitly allowed by fileAllowList option
) Refs #2154 BREAKING CHANGE: FileResolver will not detect and process any local file unless explicitly allowed by fileAllowList option
✔️ This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory. |
✔️ This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory. |
We will introduce breaking change and have
FileResolver
disabled by default as it open’s possibility to do dangerous operations. We will also introduce additional security measure in form of configuration supplied regex that will guard the base resolution context of FileResolver - this will allow processing only certain whitelisted paths. Additional thing that we work on is to allow possibility to ignore certain URL schemas and not process them at all (instead of ApiDOM throwing error, the unrecognized schemas will be ignored).TODO:
The text was updated successfully, but these errors were encountered: