Bracket object notation with user input is present, this might allow an attacker to access all properties of the object and even it's prototype, leading to possible code execution.
This is my code
updatedParquetConnection(state: any, action) {
const index = state.parquet.findIndex(server => server.id === action.payload.id);
state.parquet[parseInt(index)] = action.payload; //this line is causing error
},
Thank you in advance