Language: JavaScript
Label: safe
CWE: CWE-352 \u2014 Cross-Site Request Forgery (CSRF)
The web application does not, or can not, sufficiently verify whether a well-formed, valid, consistent request was intentionally provided by the user who submitted the request.

Code:
  editProductItemDetails: function(rowId, product_name) {

    // Display the product name on modal
    $("#productSaleDetails .modal-title").html(product_name);
    $("#productSaleDetails .rowId").val(rowId);

    // select product details row
    var product_row = $(`#${rowId}`);

    $("#productSaleDetails #productSaleItemPrice").val( product_row.find(".netSalesPrice").val() );
    $("#productSaleDetails #productSaleItemDiscount").val( product_row.find(".productDiscount").val() );
    $("#productSaleDetails #productSaleItemPacket").val( product_row.find(".productPacket").val() );
    $("#productSaleDetails #productSaleItemDetails").val( product_row.find(".productItemDetails").val() );

  },