Fixed before it merges.

Odin reviews every pull request for security issues and comments only where it finds one, with the fix already written for you to commit.

Start for free

25 pull request reviews free. No card, no time limit.

src/routes/exports.ts
odin-securitybot2 minutes ago

High · Invoice exports can be read across workspaces

Suggested change
40- const invoice = await Invoice.findById(req.params.id);
40+ const invoice = await Invoice.findOne({
41+ _id: req.params.id, workspace: req.user.workspaceId });
Commit suggestion

In the pull request, where your team already is.

Connect GitHub, Bitbucket or Azure DevOps and choose the repositories. Nobody has to open another tool to see what Odin found.

Mjolnir Security Review — changes neededRequired
Build and tests

A status check. Comments on the lines Odin is concerned about, with a suggested change GitHub commits in one click.

Try it on a pull request.

Commit Odin's suggestion, watch it check the new commit, then merge when the check turns green.

Works here · the re-check is sped up

halden/apiPrivate
Open
Add CSV export for invoices #482
jonas-berg wants to merge 1 commit into main from invoice-csv-export
odin-securitybotcommented 2 minutes ago
Security review · changes needed

Odin checked 2 files (64 changed lines) for issues in auth, access control, input handling, secrets and queries.

•High · Invoice exports can be read across workspaces

Review details

odin-security bot reviewed 2 minutes ago
src/routes/exports.ts
39+ router.get("/v1/invoices/:id/export", auth, async (req, res) => {
40+ const invoice = await Invoice.findById(req.params.id);
odin-securitybot2 minutes ago

High · Invoice exports can be read across workspaces

Any signed-in user can download another workspace's invoice by changing the ID in the URL.

How this was verified: Traced req.params.id from the route to Invoice.findById; nothing checks the caller's workspace in between.

Suggested change
40- const invoice = await Invoice.findById(req.params.id);
40+ const invoice = await Invoice.findOne({
41+ _id: req.params.id, workspace: req.user.workspaceId });
Add suggestion to batch

Prompt for your coding agent

Reply @gungnirai dismiss <reason> or @gungnirai accept risk <reason>. After a push, comment @gungnirai review for another review.

Some checks were not successful
1 failing and 2 successful checks
Mjolnir Security Review — Odin security review — changes neededRequiredDetails
Merging is blocked
Required statuses must pass before merging
PR Reviews / #482in Odin
halden/api·#482Completed
One finding is open. It blocks merge.

Odin read the 2 changed files at 9f4c2a1, 2 minutes ago. This repository blocks merge on high and above, so the check fails until it is fixed or an admin approves a decision.

1Blocks merge
Invoice exports can be read across workspaces
High · Open · src/routes/exports.ts:40 · Added in this pull request

Fix it from the pull request, from Odin, or from your editor.

The review is the same everywhere. Commit the fix where you happen to be working, and Odin checks the new commit either way.

  • In the pull request

    Commit Odin's suggestion in one click, or commit every open suggested fix in a single commit.

    Commit suggestionCommit every fix
  • In Odin

    Open the review in Odin and select Commit fix. Dismiss a false positive or accept the risk there too, with an admin's approval where you want it.

    Commit fixDismiss as false positiveAccept risk
  • From your coding agent

    Copy the fix prompts for a review into your agent, or connect it to the Odin MCP and let it read the review and push the fix itself.

    get_pr_reviewfix_finding
    About the Odin MCP

What a clean pull request looks like.

When Odin finds nothing, you still know it looked. Choose what shows up on the pull request: a summary comment, a one-line note, a 👍, or only the check.

A clean pull request

Show the VAT number on invoice PDFs #491
odin-security bot

Odin found nothing to fix in this pull request.

Mjolnir Security Review — no issues found

You'll see a one-line note on each pull request.

Your repository, your rules.

Each repository has its own settings, and every change saves as soon as you make it. Copy them to every repository in one go.

Review

Odin reviews each pull request when it's opened. A Run Review button reviews later commits.

Block merge onDefault: Never

The check reports what Odin found but never blocks the merge.

25 reviews on us. Then $1 each.

No card and no time limit. Earn up to 20 more by connecting your tools or inviting your team. After that, a review costs one credit when it's delivered.

25 freeup to 20 more to earn

Questions about PR Reviews.

GitHub, Bitbucket and Azure DevOps. Odin publishes a GitHub status check, a Bitbucket merge check or an Azure DevOps branch policy.

Answered from Odin's docs by AI, so check the linked page.

Point Odin at your next pull request.

Start for free

25 pull request reviews free. No card, no time limit.