Architecture check

brocoders/nestjs-boilerplate

mainRule-based: the same commit always gets the same result

0 errors, 21 warnings

No critical or high-risk findings. 7 worth a look.

21 warnings in the paths between 19 routes and 5 tables.

Stop it getting worse on every pull request

Findings already on main never fail a pull request; only what a pull request adds can. Nothing new slips in while you fix these. One commit adds it. No token, no account.

README badge

wyro architecture: checked[![wyro architecture](https://wyro.in/api/badge/brocoders/nestjs-boilerplate)](https://wyro.in/scan/brocoders/nestjs-boilerplate)

Live counts that update on every push, linking back to this report.

Share on X

Route → table map

19 routes · 3 tables reached

error warning guarded
POST /email/login · 3 warnings · no guardPOST /email/loginno guardPOST /reset/password · 3 warnings · no guardPOST /reset/passwordno guardPOST /login · 3 warnings · no guardPOST /loginno guardPOST /email/register · 2 warnings · no guardPOST /email/registerno guardPOST /email/confirm · 2 warnings · no guardPOST /email/confirmno guardPOST /email/confirm/new · 2 warnings · no guardPOST /email/confirm/newno guardPOST /forgot/password · 2 warnings · no guardPOST /forgot/passwordno guardGET / · 1 warning · no guardGET /GET /:path · 1 warning · no guardGET /:pathPOST /refresh · authPOST /refreshauthPATCH /me · authPATCH /meauthPOST / · authPOST /authPATCH /:id · authPATCH /:idauthGET /me · authGET /meauthPOST /logout · authPOST /logoutauthDELETE /me · authDELETE /meauthGET /:id · authGET /:idauthDELETE /:id · authDELETE /:idauthPOST /upload · authPOST /uploadauthuserusersessionsessionfilefile

Findings

21

0 errors21 warningsDetails

Routes

19

9 with findingsGraph

Tables

5

Data models read

Rules run

20/20

176/176 source files read

Findings by route

9 of 19 routes flagged · 20/20 rules ran

  • Errors
  • Warnings
  • No findings
Each column is one route, in the order it is declaredRoute names unlock with a free account

21 findings

7 medium14 low

  • Mediumlow confidencePOST /email/login has no validator or rate limiter attached.

    POST /email/login accepts any body at any rate. Malformed input reaches your handler, and nothing stops a script calling it in a loop.

    Missing
    Schema validation of the request body, and a rate limit.
    Confidence
    Inline validation (zod.parse, pydantic models) and platform rate limits are not always visible to the parser. Check before acting.

    Prove it

    curl -i -X POST 'https://YOUR_API/email/login' \
      -H 'content-type: application/json' -d '{"unexpected": {"nested": [1,2,3]}}'
    # Expect 400. A 2xx or 500 means the body is not validated.

    Fix

    class BodyDto {
      @IsString() @MaxLength(200) name!: string;
    }
    
    @Post("/email/login")
    handler(@Body(new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true })) body: BodyDto) { /* ... */ }

    Regression test

    test("POST /email/login rejects an unexpected body", async () => {
      const res = await request(app).post("/email/login").send({ unexpected: true });
      expect(res.status).toBe(400);
    });

    Intended? If validation and rate limiting happen upstream (an API gateway, Vercel Firewall), turn the rule off for the repo: { "policy": { "rules": { "public-entry-guarded": "off" } } } in wyro.json.

    public-entry-guarded

  • Mediumlow confidencePOST /email/register has no validator or rate limiter attached.

    POST /email/register accepts any body at any rate. Malformed input reaches your handler, and nothing stops a script calling it in a loop.

    Missing
    Schema validation of the request body, and a rate limit.
    Confidence
    Inline validation (zod.parse, pydantic models) and platform rate limits are not always visible to the parser. Check before acting.

    Prove it

    curl -i -X POST 'https://YOUR_API/email/register' \
      -H 'content-type: application/json' -d '{"unexpected": {"nested": [1,2,3]}}'
    # Expect 400. A 2xx or 500 means the body is not validated.

    Fix

    class BodyDto {
      @IsString() @MaxLength(200) name!: string;
    }
    
    @Post("/email/register")
    handler(@Body(new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true })) body: BodyDto) { /* ... */ }

    Regression test

    test("POST /email/register rejects an unexpected body", async () => {
      const res = await request(app).post("/email/register").send({ unexpected: true });
      expect(res.status).toBe(400);
    });

    Intended? If validation and rate limiting happen upstream (an API gateway, Vercel Firewall), turn the rule off for the repo: { "policy": { "rules": { "public-entry-guarded": "off" } } } in wyro.json.

    public-entry-guarded

  • Mediumlow confidencePOST /email/confirm has no validator or rate limiter attached.

    POST /email/confirm accepts any body at any rate. Malformed input reaches your handler, and nothing stops a script calling it in a loop.

    Missing
    Schema validation of the request body, and a rate limit.
    Confidence
    Inline validation (zod.parse, pydantic models) and platform rate limits are not always visible to the parser. Check before acting.

    Prove it

    curl -i -X POST 'https://YOUR_API/email/confirm' \
      -H 'content-type: application/json' -d '{"unexpected": {"nested": [1,2,3]}}'
    # Expect 400. A 2xx or 500 means the body is not validated.

    Fix

    class BodyDto {
      @IsString() @MaxLength(200) name!: string;
    }
    
    @Post("/email/confirm")
    handler(@Body(new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true })) body: BodyDto) { /* ... */ }

    Regression test

    test("POST /email/confirm rejects an unexpected body", async () => {
      const res = await request(app).post("/email/confirm").send({ unexpected: true });
      expect(res.status).toBe(400);
    });

    Intended? If validation and rate limiting happen upstream (an API gateway, Vercel Firewall), turn the rule off for the repo: { "policy": { "rules": { "public-entry-guarded": "off" } } } in wyro.json.

    public-entry-guarded

18 more findings, plus a one-click fix prompt for Cursor or Claude Code. Free with GitHub sign-in.

What this is

Wyro reads the repository’s routes and data models and checks the paths between them: whether a route can reach a table without passing a guard, whether a datastore holding personal data is exposed to a public read, whether an endpoint that issues credentials requires the credentials it issues.

It is rule-based, not a model. The same commit produces the same result every time, and it does not guess at business rules it cannot see. A rule with nothing to look at is reported as not having run — never as a pass.

This check runs on public source through GitHub’s own API and needs no account. A free account adds the findings, the editable architecture canvas and a CI gate that is free on private repositories too. No card required.

Maintain this repository? You can have this report removed, and a real vulnerability is disclosed to you privately before it is published. How public reports are handled.