Skip to content

Commit 519d798

Browse files
authored
build: Release (#9990)
2 parents 2e06fa1 + 9f98d39 commit 519d798

File tree

5 files changed

+36
-5
lines changed

5 files changed

+36
-5
lines changed

changelogs/CHANGELOG_alpha.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [9.1.1-alpha.1](https://github.com/parse-community/parse-server/compare/9.1.0...9.1.1-alpha.1) (2025-12-16)
2+
3+
4+
### Bug Fixes
5+
6+
* 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))
7+
18
# [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)
29

310

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-server",
3-
"version": "9.1.0",
3+
"version": "9.1.1-alpha.1",
44
"description": "An express module providing a Parse-compatible API server",
55
"main": "lib/index.js",
66
"repository": {

spec/Adapters/Auth/instagram.spec.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,31 @@ describe('InstagramAdapter', function () {
101101
'Instagram auth is invalid for this user.'
102102
);
103103
});
104+
105+
it('should ignore client-provided apiURL and use hardcoded endpoint', async () => {
106+
const accessToken = 'mockAccessToken';
107+
const authData = {
108+
id: 'mockUserId',
109+
apiURL: 'https://example.com/',
110+
};
111+
112+
mockFetch([
113+
{
114+
url: 'https://graph.instagram.com/me?fields=id&access_token=mockAccessToken',
115+
method: 'GET',
116+
response: {
117+
ok: true,
118+
json: () =>
119+
Promise.resolve({
120+
id: 'mockUserId',
121+
}),
122+
},
123+
},
124+
]);
125+
126+
const user = await adapter.getUserFromAccessToken(accessToken, authData);
127+
expect(user).toEqual({ id: 'mockUserId' });
128+
});
104129
});
105130

106131
describe('InstagramAdapter E2E Test', function () {

src/Adapters/Auth/instagram.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ class InstagramAdapter extends BaseAuthCodeAdapter {
9696
}
9797

9898
async getUserFromAccessToken(accessToken, authData) {
99-
const defaultURL = 'https://graph.instagram.com/';
100-
const apiURL = authData.apiURL || defaultURL;
99+
const apiURL = 'https://graph.instagram.com/';
101100
const path = `${apiURL}me?fields=id&access_token=${accessToken}`;
102101

103102
const response = await fetch(path);

0 commit comments

Comments
 (0)