🛡️ GHSA-j9gf-vw2f-9hrw — server
Description
Appsmith: Configuration-dependent origin validation bypass in password reset and email verification link generation
Summary
A configuration-dependent origin validation bypass was identified in Appsmith’s password reset and email verification flows on current release.
Both flows derive the email-link base URL from the request Origin header. The current validation only enforces a trusted base URL when APPSMITH_BASE_URL is configured. If that setting is unset, the application accepts the caller-supplied origin and uses it to generate token-bearing reset and verification links.
On deployments with email delivery enabled and APPSMITH_BASE_URL unset, this can cause Appsmith to send security-sensitive links whose clickable host is attacker-controlled, which can plausibly lead to account takeover after victim interaction.
Details
The current release head at commit e77639eca4974469c1e676904851ffdaedd38111 was reviewed.
The relevant routes are publicly reachable in SecurityConfig.java:
POST /forgotPasswordis permitted without authentication at line209POST /resendEmailVerificationis permitted without authentication at line228
In UserControllerCE.java, both flows copy the request Origin header into the DTO field used as the email-link base URL:
forgotPasswordRequest(...)at lines91-94resendEmailVerification(...)at lines189-193
In UserServiceCEImpl.java, base URL validation is conditional:
@Value("${APPSMITH_BASE_URL:}")at line113resolveSecureBaseUrl(...)at lines132-145
That method explicitly documents and implements this behavior:
- if
APPSMITH_BASE_URLis configured, the provided URL must match it - if
APPSMITH_BASE_URLis unset, the provided URL is accepted for backward compatibility
The resulting base URL is then used to construct token-bearing links:
FORGOT_PASSWORD_CLIENT_URL_FORMATat line149- reset URL generation at lines
282-289 EMAIL_VERIFICATION_CLIENT_URL_FORMATat line152- verification URL generation at lines
931-940
This means the base URL is not only used for branding or display purposes. It directly controls the clickable host of security-sensitive reset and verification links.
Note that the admin UI describes APPSMITH_BASE_URL as required for password reset and email verification links in:
app/client/src/ce/pages/AdminSettings/config/configuration.tsxat lines41-49
The reviewed self-host material indicates this protection is not fail-closed by default, which makes the vulnerable condition realistic on existing deployments where operators have not set APPSMITH_BASE_URL.
PoC
These steps were designed for validation on an Appsmith deployment that I own or am explicitly authorized to test.
1. Deploy a non-production Appsmith instance from current release, or any build containing the affected code.
2. Enable outbound email delivery.
3. Leave APPSMITH_BASE_URL unset or blank.
4. Use a test mailbox account you control, for example victim@example.test.
5. Send a password reset request with a forged Origin header:
```bash
curl -i -X POST 'https://YOUR-INSTANCE/api/v1/users/forgotPassword' \
-H 'Content-Type: application/json' \
-H 'Origin: https://attacker.example' \
--data '{"email":"victim@example.test"}'
```
6. Inspect the delivered email. If affected, the clickable reset link is generated under https://attacker.example/... instead of the legitimate Appsmith host.
7. Repeat the same validation for resend email verification using an unverified test account:
```bash
curl -i -X POST 'https://YOUR-INSTANCE/api/v1/users/resendEmailVerification' \
-H 'Content-Type: application/json' \
-H 'Origin: https://attacker.example' \
--data '{"email":"victim@example.test"}'
```
8. Inspect the delivered verification email. If affected, the clickable verification link is generated under https://attacker.example/....
9. Set APPSMITH_BASE_URL=https://YOUR-INSTANCE, restart the server, and repeat the same requests.
10. The expected secure behavior is that mismatched Origin is rejected, or the generated links no longer follow the forged request header.
Live tokens, third-party data, or unsafe exploitation material was not included in this report. The attached archive contains source excerpts, data-flow proof, safe validation notes, and supporting evidence collected from the reviewed current branch.
Impact
This is a trust-boundary failure in token-bearing email authentication flows.
Affected deployments are those where:
APPSMITH_BASE_URLis unset or blank- outbound email is enabled
- password reset and/or email verification flows are enabled
Attacker requirements are low:
- no prior authentication is required to reach the relevant endpoints
- the attacker only needs to trigger an email flow toward a target account
Security impact:
- Appsmith can generate password reset or verification emails whose clickable host is attacker-controlled
- victim interac
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability none.
Weakness class
GHSA-j9gf-vw2f-9hrw is classified as CWE-346: Origin Validation Error. The origin of a message or request is not verified properly, so one source can pose as another.
Affected software
GHSA-j9gf-vw2f-9hrw is recorded against 1 package.
- com.appsmith:server (fixed in 2.0)
Timeline and source
Published on 12 June 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| com.appsmith:server | — | 2.0 |
References
Similar Threats
- High GHSA-9wcp-79g5-5c3c
Site Security Check
Is server part of your stack?
GHSA-j9gf-vw2f-9hrw is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.