From fbcc938b5ade5ff4c30598ac51272ef7ecef0616 Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Tue, 16 Dec 2025 02:24:37 +0100 Subject: [PATCH 1/3] fix: Server-Side Request Forgery (SSRF) in Instagram auth adapter [GHSA-3f5f-xgrj-97pf](https://github.com/parse-community/parse-server/security/advisories/GHSA-3f5f-xgrj-97pf) (#9988) --- spec/Adapters/Auth/instagram.spec.js | 25 +++++++++++++++++++++++++ src/Adapters/Auth/instagram.js | 3 +-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/spec/Adapters/Auth/instagram.spec.js b/spec/Adapters/Auth/instagram.spec.js index 441ef2b176..9b9fd27aa4 100644 --- a/spec/Adapters/Auth/instagram.spec.js +++ b/spec/Adapters/Auth/instagram.spec.js @@ -101,6 +101,31 @@ describe('InstagramAdapter', function () { 'Instagram auth is invalid for this user.' ); }); + + it('should ignore client-provided apiURL and use hardcoded endpoint', async () => { + const accessToken = 'mockAccessToken'; + const authData = { + id: 'mockUserId', + apiURL: 'https://example.com/', + }; + + mockFetch([ + { + url: 'https://graph.instagram.com/me?fields=id&access_token=mockAccessToken', + method: 'GET', + response: { + ok: true, + json: () => + Promise.resolve({ + id: 'mockUserId', + }), + }, + }, + ]); + + const user = await adapter.getUserFromAccessToken(accessToken, authData); + expect(user).toEqual({ id: 'mockUserId' }); + }); }); describe('InstagramAdapter E2E Test', function () { diff --git a/src/Adapters/Auth/instagram.js b/src/Adapters/Auth/instagram.js index 55cb357f6a..e1921597dd 100644 --- a/src/Adapters/Auth/instagram.js +++ b/src/Adapters/Auth/instagram.js @@ -96,8 +96,7 @@ class InstagramAdapter extends BaseAuthCodeAdapter { } async getUserFromAccessToken(accessToken, authData) { - const defaultURL = 'https://graph.instagram.com/'; - const apiURL = authData.apiURL || defaultURL; + const apiURL = 'https://graph.instagram.com/'; const path = `${apiURL}me?fields=id&access_token=${accessToken}`; const response = await fetch(path); From 3d395b3ce56ebf87be6cc41bb42e32ae94b47b4f Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 16 Dec 2025 01:25:34 +0000 Subject: [PATCH 2/3] chore(release): 9.1.1-alpha.1 [skip ci] ## [9.1.1-alpha.1](https://github.com/parse-community/parse-server/compare/9.1.0...9.1.1-alpha.1) (2025-12-16) ### Bug Fixes * Server-Side Request Forgery (SSRF) in Instagram auth adapter [GHSA-3f5f-xgrj-97pf](https://github.com/parse-community/parse-server/security/advisories/GHSA-3f5f-xgrj-97pf) ([#9988](https://github.com/parse-community/parse-server/issues/9988)) ([fbcc938](https://github.com/parse-community/parse-server/commit/fbcc938b5ade5ff4c30598ac51272ef7ecef0616)) --- changelogs/CHANGELOG_alpha.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/changelogs/CHANGELOG_alpha.md b/changelogs/CHANGELOG_alpha.md index f81601fd15..803d49ac26 100644 --- a/changelogs/CHANGELOG_alpha.md +++ b/changelogs/CHANGELOG_alpha.md @@ -1,3 +1,10 @@ +## [9.1.1-alpha.1](https://github.com/parse-community/parse-server/compare/9.1.0...9.1.1-alpha.1) (2025-12-16) + + +### Bug Fixes + +* Server-Side Request Forgery (SSRF) in Instagram auth adapter [GHSA-3f5f-xgrj-97pf](https://github.com/parse-community/parse-server/security/advisories/GHSA-3f5f-xgrj-97pf) ([#9988](https://github.com/parse-community/parse-server/issues/9988)) ([fbcc938](https://github.com/parse-community/parse-server/commit/fbcc938b5ade5ff4c30598ac51272ef7ecef0616)) + # [9.1.0-alpha.4](https://github.com/parse-community/parse-server/compare/9.1.0-alpha.3...9.1.0-alpha.4) (2025-12-14) diff --git a/package-lock.json b/package-lock.json index 3d33f69c40..77a9b0561b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "parse-server", - "version": "9.1.0", + "version": "9.1.1-alpha.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "parse-server", - "version": "9.1.0", + "version": "9.1.1-alpha.1", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { diff --git a/package.json b/package.json index ee6084a65c..86b32e334e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "parse-server", - "version": "9.1.0", + "version": "9.1.1-alpha.1", "description": "An express module providing a Parse-compatible API server", "main": "lib/index.js", "repository": { From 9f98d3999cc97f37a66148e3cd2efbd98da4367f Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 16 Dec 2025 01:32:07 +0000 Subject: [PATCH 3/3] empty commit to trigger CI