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

v2 #96

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

v2 #96

wants to merge 10 commits into from

Conversation

nikoloza
Copy link
Member

@nikoloza nikoloza commented Aug 2, 2022

No description provided.

@Nikaoto Nikaoto force-pushed the feature/v2 branch 3 times, most recently from 6b91727 to 33b9394 Compare November 11, 2022 12:37
@github-advanced-security
Copy link

You have successfully added a new CodeQL configuration /language:javascript. As part of the setup process, we have scanned this repository and found 6 existing alerts. Please check the repository Security tab to see all alerts.

const obj = deepMergeExtend({}, elementProp)
element[e] = deepMergeExtend(obj, extendProp)
} else if (elementProp === undefined && isFunction(extendProp)) {
element[e] = extendProp

Check warning

Code scanning / CodeQL

Prototype-polluting function

Properties are copied from [extend](1) to [element](2) without guarding against prototype pollution.
try {
const evalProp = window.eval(`(${objProp})`) // use parentheses to convert string to function expression
stringified[prop] = evalProp
} catch (e) { if (e) stringified[prop] = objProp }

Check warning

Code scanning / CodeQL

Prototype-polluting function

Properties are copied from [obj](1) to [stringified](2) without guarding against prototype pollution.
stringified[prop] = evalProp
} catch (e) { if (e) stringified[prop] = objProp }
} else {
stringified[prop] = objProp

Check warning

Code scanning / CodeQL

Prototype-polluting function

Properties are copied from [obj](1) to [stringified](2) without guarding against prototype pollution.
packages/utils/object.js Fixed Show fixed Hide fixed
packages/utils/object.js Fixed Show fixed Hide fixed
const elementProp = element[e]
const extendProp = extend[e]
if (elementProp === undefined) {
element[e] = extendProp

Check warning

Code scanning / CodeQL

Prototype-polluting function

Properties are copied from [extend](1) to [element](2) without guarding against prototype pollution.
packages/utils/object.js Fixed Show fixed Hide fixed
packages/utils/object.js Fixed Show fixed Hide fixed
@nikoloza nikoloza added this to the v2 prepatch milestone Apr 28, 2023
@nikoloza nikoloza mentioned this pull request Apr 28, 2023
packages/utils/object.js Fixed Show fixed Hide fixed
} else if (isObject(objProp)) {
stringified[prop] = deepDestringify(objProp, stringified[prop]) // recursively call deepDestringify for nested objects
} else {
stringified[prop] = objProp

Check warning

Code scanning / CodeQL

Prototype-polluting function

Properties are copied from [obj](1) to [stringified](2) without guarding against prototype pollution.
Comment on lines 13 to 36
return str.replace(/\{\{\s*((?:\.\.\/)+)?([^}\s]+)\s*\}\}/g, (_, parentPath, variable) => {
if (parentPath) {
const parentLevels = parentPath.split('../').filter(Boolean).length
let parentState = state
for (let i = 0; i < parentLevels; i++) {
parentState = parentState.parent
}
const value = parentState[variable.trim()]
return value ? `${value}` : ''
} else {
const value = state[variable.trim()]
return value ? `${value}` : ''
}
})

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data

This [regular expression](1) that depends on [library input](2) may run slow on strings starting with '{{{{' and with many repetitions of '{{{{!'.
packages/state/inherit.js Fixed Show fixed Hide fixed
packages/state/inherit.js Fixed Show fixed Hide fixed
packages/state/inherit.js Fixed Show fixed Hide fixed
packages/state/inherit.js Fixed Show fixed Hide fixed
dependabot bot and others added 10 commits July 18, 2023 07:38
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.2.2 to 27.2.3.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](jest-community/eslint-plugin-jest@v27.2.2...v27.2.3)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [eslint](https://github.com/eslint/eslint) from 8.44.0 to 8.45.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.44.0...v8.45.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.18.13 to 0.18.14.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](evanw/esbuild@v0.18.13...v0.18.14)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.22.8 to 7.22.9.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.22.9/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…gin-jest-27.2.3

Bump eslint-plugin-jest from 27.2.2 to 27.2.3
…18.14

Bump esbuild from 0.18.13 to 0.18.14
…-7.22.9

Bump @babel/core from 7.22.8 to 7.22.9
Bumps [@babel/eslint-parser](https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser) from 7.22.7 to 7.22.9.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.22.9/eslint/babel-eslint-parser)

---
updated-dependencies:
- dependency-name: "@babel/eslint-parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…nt-parser-7.22.9

Bump @babel/eslint-parser from 7.22.7 to 7.22.9
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

Successfully merging this pull request may close these issues.

1 participant