1.
Patel Jikenkumar Kamleshkumar
– Student - BCA(Hons.), SVG University, Ahmedabad, Gujarat, India.
2.
Panchal Yug Nalinkumar
– Student - BCA(Hons.), SVG University, Ahmedabad, Gujarat, India.
3.
Rachana Parikh
– Assistant Professor, SVG University, Ahmedabad, Gujarat, India.
Abstract
Pick JWT or PASETO. That’s the real-world choice. Most backend developers face it sooner or later, armed with little more than “JWT is popular” or “PASETO is safer by design” – two claims that are each half-true and not especially useful on their own. This paper draws on one of the few studies that actually tests the two head-to-head, under controlled conditions, instead of repeating the slogans: Nugraha et al. [1]. Token-generation time, token size, transfer time, and a set of OWASP-style attacks run against both formats – that was their setup. We treat it as an anchor. Everything else builds outward from there: earlier work on JWT performance, PASETO’s design philosophy, REST API vulnerability testing, and CSRF. A simple taxonomy holds it together – authentication mechanism, security objective, threat type, evaluation criteria, nothing fancier than that. Here’s the headline from Nugraha et al.” JWT generated and transferred faster in their Node.js setup. PASETO resisted the specific authentication attacks tried against it more effectively. Both findings are true. Neither the whole story, though, because the test covered a narrow slice of real risk – three OWASP 2019 categories, one CSRF scenario, 50 samples, a single implementations stack. Informative, not conclusive. That’s our honest read after setting it against the wider literature. Neither format is a complete security solution on its own, and telling you otherwise is oversimplifying. JWT wins on ecosystem maturity and speed. PASETO wins on closing off the ways a developer can misconfigure things. Which one actually matters more depends entirely on what’s built around the token layer – not the token format in isolation. We end with where future comparisons ought to go: larger workloads, a wider attack surface, cloud and microservice deployments, and full token-lifecycle handling. Expiry. Rotation. Revocation. The whole lifecycle—not just the signing step.
References
[1] A. F. Nugraha, H. Kabetta, I. K. S. Buana, and R. B. Hadiprakoso, “Performance and security comparison of JSON Web Tokens (JWT) and Platform Agnostic Security Tokens (PASETO) on RESTful APIs,” in 2023 IEEE International Conference on Cryptography, Informatics, and Cybersecurity (ICoCICs), 2023, pp. 15–22, doi: https://doi.org/10.1109/ ICoCICs58778.2023.10277377.
[2] A. Rahmatulloh, R. Gunawan, and F. M. S. Nursuwars, “Performance comparison of signed algorithms on JSON Web Token,” IOP Conf. Ser.: Mater. Sci. Eng., vol. 550, no. 1, 2019, Art. no. 012023, doi: https://doi.org/10.1088/1757-899X/550/1/012023.
[3] R. Gunawan, and A. Rahmatulloh, “JSON Web Token (JWT) untuk authentication pada Interoperabilitas Arsitektur berbasis RESTful web service,” Jurnal Edukasi dan Penelitian Informatika, vol. 5, no. 1, pp. 74–79, 2019, doi: https://doi.org/10.26418/jp.v5i1.27232.
[4] X.-W. Huang, C.-Y. Hsieh, C.-H. Wu, and Y.C. Cheng, “A token-based user authentication mechanism for data exchange in RESTful API,” in Proc. 18th Int. Conf. NetworkBased Information Systems (NBiS), 2015, pp. 601–606, doi: https://doi.org/10.1109/ NBiS.2015.89.
[5] A. Rahmatulloh, H. Sulastri, and R. Nugroho, “Keamanan RESTful web service menggunakan JSON Web Token (JWT) HMAC SHA-512,” Jurnal Nasional Teknik Elektro dan Teknologi Informasi, vol. 7, no. 2, 2018, doi: https://doi.org/10.22146/jnteti. v7i2.417.
[6] I. Darmawan, A. P. A. Karim, A. Rahmatulloh, R. Gunawan, and D. Pramesti, “JSON Web Token penetration testing on cookie storage with CSRF techniques,” in 2021 International Conference Advancement in Data Science, E-Learning and Information Systems
(ICADEIS), 2021, doi: https://doi.org/10.1109/ ICADEIS52521.2021.9701965.
[7] N. F. Sitorus, A. Kusyanti, and A. Bhawiyuga, “Implementasi Autentikasi Berbasis Token
Menggunakan Platform-Agnostic Security Tokens (PASETO) sebagai mekanisme autentikansi RESTful API,” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, vol. 4, no. 11, pp. 3947-3955, 2020.
[8] V. Atlidakis, P. Godefroid, and M. Polishchuk, “Checking security properties of cloud service REST APIs,” in 2020 IEEE International Conference on Software Testing, Verification and Validation (ICST), 2020, pp. 387–397, doi: https://doi.org/10.1109/ ICST46399.2020.00046.
[9] A. Martin-Lopez, S. Segura, and A. RuizCortés, “RESTest: Automated black-box testing of RESTful web APIs,” in Proc. 30th ACM SIGSOFT Int. Symp. Software Testing and Analysis (ISSTA), pp. 682–685, 2021, doi: https://doi.org/10.1145/3460319.3469082.
[10] D. Corradini, M. Pasqua, and M. Ceccato, “Automated black-box testing of mass assignment vulnerabilities in RESTful APIs,” 2023 IEEE/ACM 45th Int. Conf. Software Engineering (ICSE), 2023, pp. 2553–2564, doi: https://doi.org/10.1109/ ICSE48619.2023.00213.
[11] A. Ehsan, M. A. M. E. Abuhaliqa, C. Catal, and D. Mishra, “RESTful API testing methodologies: Rationale, challenges, and solution directions,” Applied Sciences, vol. 12, no. 9, 4369, 2022, doi: https://doi.org/10.3390/ app12094369.
[12] F. Tanveer, F. Iradat, W. Iqbal, and A. Ahmad, “Towards secure APIs: A survey on RESTful API vulnerability detection,” Computers,
Materials & Continua, vol. 84, no. 3, pp. 4223– 4257, 2025, doi: https://doi.org/10.32604/ cmc.2025.067536.
[13] A. Decrop, S. Eraso Lasso, X. Devroey, and G. Perrouin, “A public benchmark of REST APIs,” in Proc. 2025 IEEE/ACM 22nd Int. Conf. Mining Software Repositories (MSR), pp.
421–433, 2025, doi: https://doi.org/10.1109/ MSR66628.2025.00072.
[14] IETF, M. Jones, J. Bradley, and N. Sakimura, “JSON Web Token (JWT),” RFC 7519, May
2015. [Online]. Available: https://datatracker. ietf.org/doc/html/rfc7519
[15] PASETO Standard, “Platform-Agnostic Security Tokens (PASETO) specification,” PASETO Specification Repository. [Online]. Available: https://paseto.io
[16] OWASP Foundation, “OWASP API Security Top 10,” OWASP, 2019. Available: https:// owasp.org/www-project-api-security/
[17] A. Bucko, K. Vishi, B. Krasniqi, and B. Rexha, “Enhancing JWT authentication and authorization in web applications based on user behavior history,” Computers, vol. 12, no. 4, p. 78, 2023, doi: https://doi.org/10.3390/ computers12040078.
[18] S. Di Meglio, and L. L. L. Starace, “Evaluating performance and resource consumption of REST frameworks and execution environments: Insights and guidelines for developers and companies,” IEEE Access, vol. 12, pp. 161649–161669, 2024, doi: https://doi. org/10.1109/ACCESS.2024.3489892.
[19] A. Santos Filho, R. J. Rodríguez, and E. L. Feitosa, “Automated broken object-level authorization attack detection in REST APIs through OpenAPI to colored Petri nets transformation,” International Journal of Information Security, vol. 24, 2025, Art. no. 83, doi: https://doi.org/10.1007/ s10207-024-00970-5.