Why an apostrophe ' was returned in the body of my SMS reports when using Reports API? Why an apostrophe ' was returned in the body of my SMS reports when using Reports API?

Why an apostrophe ' was returned in the body of my SMS reports when using Reports API?

Vonage API Support

Symptom

When running an SMS report using the Reports API, there's an additional apostrophe ' in the body of the SMS.

Applies To

  • SMS
  • Reports API

 

Cause

The additional apostrophe was intentionally added to the message body to prevent CSV injection attacks. This is necessary to prevent "auto execution" within a spreadsheet.

Additional Information

https://owasp.org/www-community/attacks/CSV_Injection