Skip to content

Honor @JsonView for external-type-id (EXTERNAL_PROPERTY) properties [GHSA-mhm7-754m-9p8w] - #6055

Merged
cowtowncoder merged 5 commits into
FasterXML:3.1from
pjfanning:test-3.1
Jul 5, 2026
Merged

Honor @JsonView for external-type-id (EXTERNAL_PROPERTY) properties [GHSA-mhm7-754m-9p8w]#6055
cowtowncoder merged 5 commits into
FasterXML:3.1from
pjfanning:test-3.1

Conversation

@pjfanning

@pjfanning pjfanning commented Jun 24, 2026

Copy link
Copy Markdown
Member

Fix [GHSA-mhm7-754m-9p8w]: incomplete handling of @JsonView for EXTERNAL_PROPERTY case, for 3.x branch (3.1 and up).

2.x variant is #6054

@pjfanning
pjfanning changed the base branch from 3.x to 3.1 June 24, 2026 17:10
@cowtowncoder

Copy link
Copy Markdown
Member

Hmmh. Error message does seem misleading.

On the other hand, there is no information leakage shown.

@pjfanning

Copy link
Copy Markdown
Member Author

@cowtowncoder I'm happy enough that this exception is valid here and what we probably need to get 2.18/2.21/2.22 to have the same result as this.

@cowtowncoder

Copy link
Copy Markdown
Member

@cowtowncoder I'm happy enough that this exception is valid here and what we probably need to get 2.18/2.21/2.22 to have the same result as this.

Ok but what does it mean wrt what is wrong with JSON to bind? I am not sure I follow...

@pjfanning

pjfanning commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

For me, with this POC, it is valid that in public view that a reader should fail to read input that has 'kind':'admin'.
The exception message is a bit confusing, I agree.

#6054 shows this same test scenario behaves differently in 2.18 and the read 'succeeds' exposing the admin values that the public view is not supposed to be able to see.

@cowtowncoder

Copy link
Copy Markdown
Member

For me, with this POC, it is valid that in public view that a reader should fail to read input that has 'kind':'admin'.

Not necessarily, since:

The exception message is a bit confusing, I agree.

it really depends on why there should be failure. If unknown properties are allowed, then "secret" should just be ignored.

So I am not sure failure is to be expected.

Put another way: not leaking info means there's no proven security problem. There may be bug still.

@cowtowncoder cowtowncoder changed the title add JsonViewExternalTypeIdBypassTest (3.1 branch) Create JsonViewExternalTypeIdBypassTest (3.1 branch) Jul 4, 2026
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

🧪 Code Coverage Report

Metric Coverage Change
Instructions coverage 81.36% 📈 +0.000%
Branches branches 74.63% 📈 +0.030%

Coverage data generated from JaCoCo test results

@cowtowncoder cowtowncoder changed the title Create JsonViewExternalTypeIdBypassTest (3.1 branch) Honor @JsonView for external-type-id (EXTERNAL_PROPERTY) properties [GHSA-mhm7-754m-9p8w] Jul 5, 2026
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

🧪 Code Coverage Report

Metric Coverage Change
Instructions coverage 81.36% 📈 +0.000%
Branches branches 74.63% 📈 +0.030%

Coverage data generated from JaCoCo test results

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

🧪 Code Coverage Report

Metric Coverage Change
Instructions coverage 81.37% 📈 +0.010%
Branches branches 74.64% 📈 +0.040%

Coverage data generated from JaCoCo test results

@cowtowncoder
cowtowncoder merged commit dea7eb4 into FasterXML:3.1 Jul 5, 2026
6 checks passed
@cowtowncoder

cowtowncoder commented Jul 5, 2026

Copy link
Copy Markdown
Member

Merged in:

  • 3.1 (for 3.1.5)
  • 3.2 (for 3.2.1)
  • 3.x

EDIT: 3.1.5 and 3.2.1 now released.

cowtowncoder added a commit that referenced this pull request Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants