---
title: "Endpoint for creating and editing vulnerabilities in the local source"
method: POST
path: "/vulnerability/"
tags: ["vulnerability"]
---

# Endpoint for creating and editing vulnerabilities in the local source

`POST /vulnerability/`

Create a vulnerability with the CVE version 5 format.

## Request body

- object
  - `data` string

## Response `200`

Success.

## Other responses

- `400` — JSON validation failed.
- `403` — Reporter permission required.
- `422` — Not possible to edit a vulnerability from the requested source.

## Changes

- **2024-11-27** `5ff926c52769` — 1 info
  - endpoint added
- **2024-11-25** `1441221dfa02` — 1 breaking
  - api path removed without deprecation
- **2024-08-28** `3423807e7e6e` — 2 warning
  - deleted the `query` request parameter `description`
  - deleted the `query` request parameter `vuln_id`
- **2024-07-31** `532242ce343b` — 2 info
  - added the new optional `query` request parameter `description`
  - added the new optional `query` request parameter `vuln_id`
- **2024-06-05** `e83dec6bbbdd` — 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `403`
  - added the non-success response with the status `422`

[Full history](https://skmtc.dev/vulnerability-lookup/apis/vulnerability-lookup-api/changes/vulnerability/post.md)

---

[API](https://skmtc.dev/vulnerability-lookup/apis/vulnerability-lookup-api.md) · [All operations](https://skmtc.dev/vulnerability-lookup/apis/vulnerability-lookup-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vulnerability-lookup/vulnerability-lookup-api/revisions/ca3ebcc72ad5/schema)
