Skip to content

fix(audits): avoid false positives in 9ABE - #148

Merged
enisdenjo merged 3 commits into
graphql:mainfrom
DoctorJohn:avoid-false-positives-in-9ABE
Jun 23, 2025
Merged

fix(audits): avoid false positives in 9ABE#148
enisdenjo merged 3 commits into
graphql:mainfrom
DoctorJohn:avoid-false-positives-in-9ABE

Conversation

@DoctorJohn

Copy link
Copy Markdown
Contributor

The audit function of 9ABE sets no content-type to trigger a 4xx status code.
However, it also sets no request body, which can also trigger a 4xx status code as per A5BF.

This can lead to false positives for this audit check if a server only responds with 4xx because of the missing request body, but not because of the missing content-type header.

This PR updates 9ABE to include a valid request body to ensure the 4xx status is triggered based on the missing content-type header. Additionally, I updated 9ABE from MAY to SHOULD to match the relevant part of the spec.

@enisdenjo
enisdenjo merged commit 5587c03 into graphql:main Jun 23, 2025
theguild-bot pushed a commit that referenced this pull request Aug 7, 2026
# [1.23.0](v1.22.4...v1.23.0) (2026-08-07)

### Bug Fixes

* add support for GraphQL v17 ([#156](#156)) ([ae03a11](ae03a11)), closes [#155](#155)
* **audits:** avoid false positives in 9ABE ([#148](#148)) ([5587c03](5587c03))
* **audits:** inconsistency between D6D5 and 6A70 ([#147](#147)) ([eac6dc8](eac6dc8))
* **audits:** incorrect status code range ([#145](#145)) ([08b4ed2](08b4ed2))

### Features

* **audit:** graphql-response+json parsing failure handling ([#149](#149)) ([81e6a07](81e6a07))
@theguild-bot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.23.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@theguild-bot theguild-bot added the released Has been released and published label Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Has been released and published

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants