We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
复现代码1:
let deepMix = require("@antv/util").deepMix; let BAD_JSON = JSON.parse('{"__proto__":{"test":123}}'); let obj = {}; deepMix(obj, BAD_JSON); console.log({}.test); // 123
问题代码:
util/src/lodash/deep-mix.ts
Lines 42 to 47 in c499a30
复现代码2:
let set = require("@antv/util").set; let obj = {}; set(obj, "__proto__.test", 123); console.log({}.test); // 123
util/src/lodash/set.ts
Lines 5 to 29 in c499a30
The text was updated successfully, but these errors were encountered:
有改进方式吗?直接来个 PR 吧~
Sorry, something went wrong.
No branches or pull requests
复现代码1:
问题代码:
util/src/lodash/deep-mix.ts
Lines 42 to 47 in c499a30
复现代码2:
问题代码:
util/src/lodash/set.ts
Lines 5 to 29 in c499a30
The text was updated successfully, but these errors were encountered: