-
Notifications
You must be signed in to change notification settings - Fork 10
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
PR to fix ansible-ai-connect-service: Cross-site Scripting (XSS) in serialize-javascript #1353
Conversation
we probably have to fix it in the |
@jameswnl there's no direct dependency over It's working as expected with [email protected], and specifically I'll raise the PR to upgrade [email protected] version |
Upgrade to PF5 isn't easy. You'll need to bump the version of Ansible UI framework too (to one using PF5) and fix the fallout too. |
@manstis yea, this isn't a 1 story point and straight CVE fix, for fixing this patternfly needs to be updated to ^5.1 coz npm update updates ansible-ui-framework package which is in turn dependent over patternfly ^5.1, and the fallout needs to be resolved as you mentioned. I'll bring this up during today's scrum and how to move forward with the issue. |
66e3ac1
to
52ad423
Compare
|
|
|
2 similar comments
|
|
|
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.
@@ -24,7 +24,8 @@ export const SingleInlineEdit = (props: InlineTextInputProps) => { | |||
<InputGroup> | |||
<TextInput | |||
type={isPassword && passwordHidden ? "password" : "text"} | |||
onChange={(value, event) => props.onChange?.(value)} | |||
onChange={(_event, value: string) => onChange(value)} | |||
// onChange={(value, event) => props.onChange?.(value)} |
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.
Do we need this comment?
expect(accountMenu).toBeInTheDocument(); | ||
expect(accountMenu).toHaveTextContent("Batman"); | ||
|
||
// Check "Logout" option is not present | ||
expect(screen.queryByText("Logout")).toBeNull(); | ||
|
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.
You seem to have remove the test for logging out?
Signed-off-by: Sumit Jaiswal <[email protected]>
Signed-off-by: Sumit Jaiswal <[email protected]>
|
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.
@manstis thanks for the review, and giving green light to the PR. Also, I've opened a bug jira: https://issues.redhat.com/browse/AAP-36777, to address the alignment issue. |
Jira Issue: https://issues.redhat.com/browse/AAP-31381
Description
PR to fix ansible-ai-connect-service: Cross-site Scripting (XSS) in serialize-javascript
Testing
Steps to test
npm install
and node packages should install as expected w/o failuresnpm audit fix
to verify if there's any vulnerabilities, currently there's 0.Scenarios tested
NA
Production deployment