Skip to content

Commit e1f913c

Browse files
chore(fe): fix CVE-2025-64718 vulnerability (#2276)
* chore(fe): fix CVE-2025-64718 vulnerability
1 parent 95c3598 commit e1f913c

6 files changed

Lines changed: 1195 additions & 1473 deletions

File tree

cypress/cypress.config.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import { defineConfig } from "cypress";
22
import webpack from "@cypress/webpack-preprocessor";
33
import { addCucumberPreprocessorPlugin } from "@badeball/cypress-cucumber-preprocessor";
4+
import cypressOnFix from "cypress-on-fix";
45

56
async function setupNodeEvents(
67
on: Cypress.PluginEvents,
78
config: Cypress.PluginConfigOptions
89
): Promise<Cypress.PluginConfigOptions> {
9-
// This is required for the preprocessor to be able to generate JSON reports after each run, and more,
10+
11+
on = cypressOnFix(on);
12+
1013
await addCucumberPreprocessorPlugin(on, config);
1114

1215
on(
@@ -42,7 +45,6 @@ async function setupNodeEvents(
4245
})
4346
);
4447

45-
// Make sure to return the config object as it might have been modified by the plugin.
4648
return config;
4749
}
4850

@@ -53,12 +55,14 @@ export default defineConfig({
5355
setupNodeEvents,
5456
defaultCommandTimeout: 10000,
5557
pageLoadTimeout: 60000,
58+
chromeWebSecurity: false,
59+
experimentalModifyObstructiveThirdPartyCode: true,
5660
},
5761
includeShadowDom: true,
5862
viewportHeight: 1080,
5963
viewportWidth: 1920,
6064
retries: {
61-
runMode: 3,
65+
runMode: 0,
6266
openMode: 0,
6367
},
6468
});

cypress/cypress/support/e2e.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ Cypress.on('window:before:load', (win) => {
1414
});
1515

1616
Cypress.on('uncaught:exception', (err, runnable) => {
17-
console.log(err);
18-
return false;
19-
})
17+
if (
18+
err.name === 'DOMException' ||
19+
err.message.includes('Cannot set property message of [object DOMException]')
20+
) {
21+
return false;
22+
}
23+
24+
return true;
25+
})

0 commit comments

Comments
 (0)