The Biggest Agentic AI Security Summit

The Secure, Governed AI Future.

October 27, 2026 | Virtual

The Biggest Agentic AI Security Summit

The Secure, Governed AI Future.

October 27, 2026 | Virtual

The Biggest Agentic AI Security Summit

The Secure, Governed AI Future.

October 27, 2026 | Virtual

/

/

JWT authentication bypass via jku header injection

JWT authentication bypass via jku header injection

Since Host server is using the JKU field of the JWT without validating, attacker can tamper with the payload of JWT and access protected resources.

Broken User Authentication (BUA)

How this template works

APIs Selection

The template uses API selection filters to specify the criteria for selecting the requests to be executed. In this case, the template filters requests based on the response code, ensuring that it is greater than or equal to 200 and less than 300. It also filters requests based on the presence of a JWT in the request headers.

Execute request

The template uses the "single" type of execution, which means that only one request will be executed. The request is specified under the "requests" section. In this case, the template replaces the authentication header with the value of the "jku_added_token" from the authentication context.

Validation

After executing the request, the template validates the response code to ensure it is within the expected range of 200 to 300. This is done using the "response_code" validation rule, which checks that the response code is greater than or equal to 200 and less than 300.

Frequently asked questions

What is the purpose of the "JKU" header in a JSON Web Token (JWT)

How does the vulnerability in the "ADD_JKU_TO_JWT" category impact the application

Can you explain how an attacker can exploit the vulnerability by tampering with the JWT payload

What are the potential consequences of a successful exploitation of this vulnerability

Are there any specific security measures recommended to mitigate this vulnerability

Are there any known real-world examples or references related to this vulnerability

Loved by security teams!

Loved by security teams!

Product Hunt Badge

"We are absolutely thrilled with the testing feature of Akto. We have used it on our graphQL endpoints and it performs flawlessly identifying common API security issues. It's truly a game-changer and we highly recommend Akto to anyone looking to effortlessly secure their API endpoints. With a user-friendly interface, it's the perfect solution for anyone looking to embrace custom rules with context to reduce false positives."

Loom Company logo

Security team,

Loom

"We are absolutely thrilled with the testing feature of Akto. We have used it on our graphQL endpoints and it performs flawlessly identifying common API security issues. It's truly a game-changer and we highly recommend Akto to anyone looking to effortlessly secure their API endpoints. With a user-friendly interface, it's the perfect solution for anyone looking to embrace custom rules with context to reduce false positives."

Loom Company logo

Security team,

Loom

"The text editor in Akto is absolutely remarkable. Its user-friendly YAML format strikes the perfect balance between simplicity and power. With intuitive features like 'API selection filter', 'Execute', Validate' creating test rules becomes incredibly easy. Akto's test editor is a game-changer, enabling seamless creation of highly personalized and effective tests that could meet the needs of any modern day organization. "

Rippling Company logo

Security team,

Rippling