I have Node js api to get the details from dynamo db.
Below is the code.
*1.
var params = {
TableName: ‘TABLE’,
Key: {
‘id’: 1,
Module: 'Module1'
},
projectionExpression:'Expression1'
};
let ddbDocClient = new AWS.DynamoDB.DocumentClient();
var response = await this.ddbDocClient.get(params).promise();
when I perform the veracode scan line number 3 is giving CWE 201 error saying insertion of sensitive information into sent data. I cloudn't find any answer in vercacode dcumentation also.
Can anyone tell me how to fix this issue?
I tried to implement HtmlEncode similar to .net but it seems like node js doesn't have that option.