CivicDataLab / CivicDataLab/DataSpaceFrontend
[Security] API key field in 'Add Access Method' has autocomplete="on" — should be off
Open
@Abhishekfm is already working on this.
Since Jun 22, 2026.
bug
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 0
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 19
Description
Summary
The API key input in the Add New Access Method dialog is a type="password" field with autocomplete="on". Browser password managers may cache the value keyed to the current URL, and the key could autofill on unintended pages or be stored in browser sync.
Impact
- API keys cached by browser password managers could be exposed if:
- The browser account is compromised
- The autofill triggers on a phishing page at a similar URL
- The browser sync is enabled and sends keys to cloud storage
Fix Recommendation
Set autocomplete="off" (or autocomplete="new-password") on the API key input field in the Add Access Method dialog:
<input
type="password"
name="apiKey"
autoComplete="new-password"
...
/>
Environment
- URL:
https://dev.civicdataspace.in/dashboard/organization/civicdatalab/aimodels/edit/{id}/versions(Add Access Method dialog) - Discovered: 2026-06-22 via QA audit
- Report ref: SEC-004
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.