-
Notifications
You must be signed in to change notification settings - Fork 16k
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
APIChain add restrictions to domains (CVE-2023-32786) #12747
Conversation
eyurtsev
commented
Nov 1, 2023
•
edited
Loading
edited
- Restrict the chain to specific domains by default
- This is a breaking change, but it will fail loudly upon object instantiation -- so there should be no silent errors for users
- Resolves CVE-2023-32786
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one nit
@@ -40,6 +73,19 @@ class APIChain(Chain): | |||
api_docs: str | |||
question_key: str = "question" #: :meta private: | |||
output_key: str = "output" #: :meta private: | |||
limit_to_domains: Optional[Sequence[str]] = () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doe we need a default value? we raise a value if one's not explicitly specified anyways
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated -- but no functional change either way
…2747) * Restrict the chain to specific domains by default * This is a breaking change, but it will fail loudly upon object instantiation -- so there should be no silent errors for users * Resolves CVE-2023-32786