Grades are a hygiene check, not a security guarantee.

MCP, MCP server

lex

UK legal research skill for Claude Code using the Lex API

Compatibility: Not stated.

Grade B

Minor issues only, no Medium or High. Worth a quick look at the findings below before installing.

Graded by PlugVetRubric v2

Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.

PERMISSION_DELETE_FILES NETWORK_NO_FIXED_HOST SECRETS_PATH_DOTENV SECRETS_ENV_READ OBFUSCATION_FILE_OVER_READ_CAP

Why this grade

  • PERMISSION_DELETE_FILES Low

    Contains a call that can delete files.

    src/lex/core/http.py, line 276 shutil.rmtree(cache_dir)

  • NETWORK_NO_FIXED_HOST Low

    Makes a network call whose host is not written as a fixed address.

    app/src/app/settings/page.tsx, line 51 const response = await fetch(`${apiUrl}/healthcheck`, {

  • SECRETS_PATH_DOTENV Low

    Mentions a .env file.

    infrastructure/azure/deploy.sh, line 131 # Load credentials from .env file

  • SECRETS_ENV_READ Note

    Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.

    app/src/app/api/research/chat/route.ts, line 11 apiKey: process.env.AZURE_OPENAI_API_KEY!,

  • OBFUSCATION_FILE_OVER_READ_CAP Note

    A file was over the read cap and was not fully read.

    uv.lock, line 1 version = 1

Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.

Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.

What was checked

Plain notes from the hygiene checks.

  • Permissions

    Concern

    can delete files.

    PERMISSION_DELETE_FILES

    src/lex/core/http.py, line 276

    shutil.rmtree(cache_dir)

  • Install and update

    Pass

    No install-time script found, and dependencies are pinned or absent.

  • Network

    Concern

    can reach a host that is not written as a fixed address.

    NETWORK_NO_FIXED_HOST

    app/src/app/settings/page.tsx, line 51

    const response = await fetch(`${apiUrl}/healthcheck`, {

    app/src/components/caselaw-preview.tsx, line 88

    const response = await fetch(`${API_CONFIG.baseUrl}/caselaw/reference/search`, {

    app/src/components/caselaw-preview.tsx, line 107

    const response = await fetch(`${API_CONFIG.baseUrl}/caselaw/search`, {

    Show more

    app/src/components/legislation-preview.tsx, line 255

    const response = await fetch(`${API_CONFIG.baseUrl}/legislation/section/lookup`, {

    app/src/components/legislation-preview.tsx, line 273

    const response = await fetch(`${API_CONFIG.baseUrl}/legislation/proxy/${legislationPath}/data.html`)

    app/src/components/legislation-preview.tsx, line 286

    const response = await fetch(`${API_CONFIG.baseUrl}/caselaw/reference/search`, {

    app/src/hooks/use-document-search.ts, line 101

    const res = await fetch(`${API_CONFIG.baseUrl}${config.endpoint}`, {

    app/src/hooks/use-legislation-prefetch.ts, line 25

    const response = await fetch(`${API_CONFIG.baseUrl}/legislation/section/lookup`, {

    scripts/create_payload_indexes.py, line 109

    "curl http://localhost:6333/collections/<name> "

  • Secrets

    Concern

    reads a credential or environment file.

    SECRETS_ENV_READ SECRETS_PATH_DOTENV

    app/src/app/api/research/chat/route.ts, line 11

    apiKey: process.env.AZURE_OPENAI_API_KEY!,

    app/src/app/api/suggestions/from-history/route.ts, line 8

    apiKey: process.env.AZURE_OPENAI_API_KEY!,

    infrastructure/azure/deploy.sh, line 131

    # Load credentials from .env file

    Show more

    infrastructure/azure/deploy.sh, line 132

    if [ -f ".env" ]; then

    infrastructure/azure/deploy.sh, line 133

    QDRANT_CLOUD_URL=$(grep "^QDRANT_CLOUD_URL=" .env | cut -d '=' -f2)

    infrastructure/azure/deploy.sh, line 134

    QDRANT_CLOUD_API_KEY=$(grep "^QDRANT_CLOUD_API_KEY=" .env | cut -d '=' -f2)

    infrastructure/azure/deploy.sh, line 135

    AZURE_OPENAI_API_KEY=$(grep "^AZURE_OPENAI_API_KEY=" .env | cut -d '=' -f2)

    infrastructure/azure/deploy.sh, line 136

    AZURE_OPENAI_ENDPOINT=$(grep "^AZURE_OPENAI_ENDPOINT=" .env | cut -d '=' -f2)

    infrastructure/azure/deploy.sh, line 137

    AZURE_OPENAI_EMBEDDING_MODEL=$(grep "^AZURE_OPENAI_EMBEDDING_MODEL=" .env | cut -d '=' -f2)

    infrastructure/azure/deploy.sh, line 138

    POSTHOG_KEY=$(grep "^POSTHOG_KEY=" .env | cut -d '=' -f2)

    scripts/bulk_search_qdrant.py, line 359

    if not os.getenv("AZURE_OPENAI_API_KEY"):

    scripts/maintenance/fix_null_years.py, line 152

    api_key=os.getenv("AZURE_OPENAI_API_KEY"),

    src/backend/core/config.py, line 17

    REDIS_PASSWORD = os.getenv("REDIS_PASSWORD")

    src/backend/core/config.py, line 23

    POSTHOG_KEY = os.getenv("POSTHOG_KEY")

    src/lex/settings.py, line 10

    QDRANT_API_KEY = os.environ.get("QDRANT_API_KEY", None)

    src/lex/settings.py, line 14

    QDRANT_CLOUD_API_KEY = os.environ.get("QDRANT_CLOUD_API_KEY")

  • Agent instructions

    Pass

    No instruction to ignore earlier instructions or to hide a step.

  • Obfuscation

    Note

    a file was over the read cap and was not fully read.

    OBFUSCATION_FILE_OVER_READ_CAP

    uv.lock, line 1

    version = 1

    app/bun.lock, line 1

    {

    data/pdf_only_legislation_complete.csv, line 1

    pdf_url,legislation_type,identifier

    Show more

    tests/test_data/ewhc_ch_2017_3397.xml, line 1

    <akomaNtoso xmlns="http://docs.oasis-open.org/legaldocml/ns/akn/3.0" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:uk="https://caselaw.nationalarchives.gov.uk/akn">

    tests/test_data/legislation_text_target.py, line 1

    target_texts = [

  • Licence

    Pass

    A licence file is present (LICENSE).

  • Maintainer activity

    Pass

    The latest commit is within the last 365 days.

Note

Hygiene check of commit a31684d5fc71. can delete files. can reach a host that is not written as a fixed address. reads a credential or environment file. a file was over the read cap and was not fully read.

Date and source

Date checked:

View source

github.com

Commit graded: a31684d5fc71d070514c1d2e0f043dcad99f7a74

This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.

Read how this letter is chosen