-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent
eval
in lottie player (#2195)
* adds runExpressions: false * bump lottie player * adds changeset * Update serious-bats-peel.md * rm ts-expect-error --------- Co-authored-by: Brooke Scarlett Yalof <[email protected]>
- Loading branch information
1 parent
bfda539
commit 543102f
Showing
6 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@leafygreen-ui/loading-indicator': patch | ||
--- | ||
- Resolves: [LG-3979](https://jira.mongodb.org/browse/LG-3979) | ||
- Updates `react-lottie-player@^1.5.6` | ||
- Adds `runExpressions: false` to Lottie config to prevent arbitrary code execution. (See https://github.com/airbnb/lottie-web/pull/2833) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { LottieProps } from 'react-lottie-player'; | ||
|
||
type RendererSettings = LottieProps['rendererSettings']; | ||
|
||
export const lottieRendererSettings: RendererSettings = { | ||
runExpressions: false, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters