Skip to content

Conversation

@TimothyAsirJeyasing
Copy link
Contributor

broccoli-output-wrapper uses get-func-name module version 2.0.0 which has some security issues.
Its fixed in version 2.0.1.
Signed-off-by: Timothy Asir Jeyasingh [email protected]

@TimothyAsirJeyasing
Copy link
Contributor Author

@SanjalKatiyar , @bipuladh Please review

@SanjalKatiyar
Copy link
Collaborator

this is not a correct fix, assuming description of PR is correct and "broccoli-output-wrapper" is affected then you need to fix the existing package which is the cause of this instead of adding a new package directly to your dependencies.

@SanjalKatiyar
Copy link
Collaborator

SanjalKatiyar commented Oct 17, 2023

also u mentioned broccoli-output-wrapper uses get-func-name, I don't find get-func-name to be an internal dep of broccoli-output-wrapper, can you point me to the place which specify this ?

@TimothyAsirJeyasing
Copy link
Contributor Author

Sorry, its a sub dependency for broccoli-output-wrapper used by chai module
node_modules/broccoli-output-wrapper/yarn.lock:get-func-name@^2.0.0

@SanjalKatiyar
Copy link
Collaborator

Sorry, its a sub dependency for broccoli-output-wrapper used by chai module node_modules/broccoli-output-wrapper/yarn.lock:get-func-name@^2.0.0

can u send me the yarn.lock file's exact line (in our odf-console) where get-func-name is defined as an internal dep of broccoli-output-wrapper ??

@SanjalKatiyar
Copy link
Collaborator

Sorry, its a sub dependency for broccoli-output-wrapper used by chai module node_modules/broccoli-output-wrapper/yarn.lock:get-func-name@^2.0.0

or maybe, the place where we are defining chai as a dep in odf-console ??

package.json Outdated
"@types/react-dnd-html5-backend": "^3.0.2",
"@types/lodash-es": "^4.17.4",
"buffer": "^6.0.3",
"get-func-name": "^2.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the need to introduce a new package.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

└─┬ [email protected]
└─┬ [email protected]
└── [email protected]

The recent available version of broccoli-output-wrapper package holds a devDependency to chai ^4.2.0, which included a version of get-func-name vulnerable to CVE-2023-43646. This CVE is fixed in get-func-name version 2.0.1 and above and its fixed/the higher version used only in Chai version 4.3.10 (chaijs/chai#1540). I could see the entry of get-func-name only in node_modules/broccoli-output-wrapper/yarn.lock after i do yarn install. And i agree, we do not need this package and this CVE will not affect our component as we do not directly consume this anywhere.

The recent available version of broccoli-output-wrapper package holds
a devDependency to chai ^4.2.0, which included a version of
get-func-name vulnerable to CVE-2023-43646.
This CVE is fixed in get-func-name version 2.0.1 and above.
This PR fixes this issue by updating the Chai version 4.3.10.
Signed-off-by: Timothy Asir Jeyasingh <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 6, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: TimothyAsirJeyasing
Once this PR has been reviewed and has the lgtm label, please ask for approval from bipuladh. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

@bipuladh bipuladh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we introducing chai?

@TimothyAsirJeyasing
Copy link
Contributor Author

odf-console is not affected by "get-func-name" for production environment, it just used as a internal dependency for chai.

└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
└── (devDependency) [email protected]
└── [email protected]

We are not at all using the packages chai or get-func-name and (we do not have any entry either in yarn.lock). Chai is used only as a dev-dependency for broccoli-output-wrapper. Initially i was a bit confused about the sub dependencies. There is no fix required for this. I will close this pr and move the bz to on-qa with this note.

@TimothyAsirJeyasing
Copy link
Contributor Author

/close

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 3, 2024

@TimothyAsirJeyasing: Closed this PR.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot closed this Jan 3, 2024
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.

3 participants