帮你快速理解、总结文档立即下载
文档中心>TencentOS Server

TencentOS 安全中心 API 接口文档

最近更新时间:2026-10-28 20:23:16
本文档已由 AI 辅助审校
我的收藏
TencentOS 安全中心提供安全数据接口,用于查询 TencentOS Server 的安全公告、漏洞信息与修复软件包。本文档面向安全厂商、漏洞扫描器及镜像同步工具,说明各接口的调用方式、请求参数与响应结构。

通用约定

Base URL

https://tossecurity.cloud.tencent.com

通用响应结构

参数名称
类型
描述
code
int
业务状态码,0 表示成功。
msg
string
返回消息,成功一般为 Success.。
data
object / array
业务数据,视接口而定。
分页接口的响应体额外包含以下字段:
参数名称
类型
描述
current_page
int
当前页码。
page_size
int
每页条数。
total
int
总记录数。
total_page
int
总页数。
接口调用约定如下:
page 与 page_size 的默认值分别为 1、10,page_size 仅允许取值 10、20、30、50。
sort 可选 asc 或 desc,默认 desc。
请求日期格式为 YYYY-MM-DD;响应时间字段为 ISO 8601 格式(含时区,例如 2024-12-13T00:11:33+08:00)。
多选参数使用重复 Query Key,例如 ?severity=critical&severity=high。
公开查询类接口按每个 IP 整体限流,各接口共用额度,当前限制为 5 次/秒,并允许一定量的突发请求。
请求超出限流额度时返回 HTTP 429,响应体为 Nginx 的 HTML 页面而非 JSON,请稍后重试。

常见错误码

HTTP 状态码
code
含义
200
0
成功。
400
400001
请求格式错误。
403
403001
权限错误。
404
404001
资源不存在。
422
422001
参数校验失败。
422
422002
请求参数值错误。
429
-
请求过于频繁,超出限流额度;响应体为 HTML 页面,不是 JSON 结构。
500
500999
内部错误。

安全公告列表接口

功能描述

分页获取已发布的 TencentOS 安全公告列表。

调用方式

GET https://tossecurity.cloud.tencent.com/api/v1/vms/public-info/advisories

请求参数说明

参数名称
类型
必填
描述
page
int
否
当前页码,默认 1。
page_size
int
否
每页条数,默认 10,可选 10 / 20 / 30 / 50。
keywords
string
否
搜索公告 ID(sa_id)、标题(synopsis)或中文标题(synopsis_cn)。
severity
string
否
严重程度,可多选:critical / important / moderate / low。
product_series
string
否
产品系列,可多选,例如 TS2、TS3、TS4。
product_ids
string
否
产品 ID,可多选,例如 TS3-3.3。
date_start
string
否
发布日期起始,按 publish_date 过滤。
date_end
string
否
发布日期结束。
order
string
否
排序字段,默认 create_date,可选 create_date / publish_date / update_date。
sort
string
否
排序方向,asc 或 desc。
说明:
仅返回 status=published 的公告。

响应 data 项说明

参数名称
类型
描述
sa_id
string
安全公告 ID。
synopsis
string
公告概要。
severity
string
严重程度。
product_series
string
产品系列。
product_ids
array
相关产品 ID 列表。
cve_ids
array
相关 CVE ID 列表。
packages
array[string]
影响的软件包名去重列表,仅统计源码包(arch=src)。
create_date
string
创建时间。
publish_date
string
发布时间。
update_date
string
更新时间。

请求示例

curl -X GET "https://tossecurity.cloud.tencent.com/api/v1/vms/public-info/advisories?page=1&page_size=20&severity=critical&severity=important&severity=moderate&product_series=TS3&date_start=2024-12-01&date_end=2024-12-31"
响应示例:
说明:TencentOS Server 4 仅有一个版本,product_ids 可能会出现4.0、4.4、4.6等数据,该部分为内部数据,用于区分不同时间段的内容,请忽略该内容。
{
"code": 0,
"current_page": 1,
"data": [
{
"create_date": "2024-12-13T00:11:33+08:00",
"product_ids": ["TS3-3.3"],
"product_series": "TS3",
"publish_date": "2024-12-12T18:01:14+08:00",
"sa_id": "TSSA-2024:1112",
"severity": "moderate",
"synopsis": "pcs security update",
"cve_ids": ["CVE-2024-21510"],
"packages": ["pcs"],
"update_date": "2024-12-18T04:00:58+08:00"
}
],
"msg": "Success.",
"page_size": 20,
"total": 97,
"total_page": 5
}

安全公告详情接口

功能描述

按公告 ID 获取安全公告详情,返回符合 CSAF 国际标准的 JSON 文档,包含关联 CVE、CVSS 评分、受影响产品与软件包、修复命令等信息。

调用方式

GET https://tossecurity.cloud.tencent.com/api/v1/vms/public-info/csaf/<sa_id>
参数名称
类型
必填
描述
sa_id
string
是
安全公告 ID,例如 TSSA-2026:1034。

请求示例

curl -X GET "https://tossecurity.cloud.tencent.com/api/v1/vms/public-info/csaf/TSSA-2026:1034"
响应示例:
{
"$schema": "https://docs.oasis-open.org/csaf/csaf/v2.1/schema/csaf.json",
"document": {
"aggregate_severity": {"text": "Important"},
"category": "csaf_vex",
"csaf_version": "2.1",
"distribution": {"tlp": {"label": "CLEAR", "url": "https://www.first.org/tlp/"}},
"lang": "en",
"notes": [
{"category": "summary", "text": "ungoogled-chromium security update", "title": "Summary"},
{"category": "description", "text": "Package updates are available for TencentOS Server 4 that fix the following vulnerabilities: ...", "title": "Title"}
],
"publisher": {
"category": "vendor",
"contact_details": "tencentos_secure@tencent.com",
"issuing_authority": "TencentOS Security Incident Response Team is responsible for vulnerability handling across all TencentOS offerings.",
"name": "TencentOS Security Incident Response Team",
"namespace": "http://mirrors.tencent.com/tlinux/errata"
},
"title": "TencentOS Security Advisory: ungoogled-chromium security update",
"tracking": {
"current_release_date": "2026-09-17T10:35:48+08:00",
"generator": {
"date": "2026-09-17T10:35:48+08:00",
"engine": {"name": "TencentOS-VMS", "version": "1.0"}
},
"id": "TSSA-2026:1034",
"initial_release_date": "2026-09-17T10:35:48+08:00",
"revision_history": [
{"date": "2026-09-17T10:35:48+08:00", "number": "1", "summary": "Current version"}
],
"status": "final",
"version": "1"
}
},
"product_tree": {
"branches": [
{
"category": "vendor",
"name": "Tencent",
"branches": [
{
"category": "product_family",
"name": "TencentOS Server",
"branches": [
{
"category": "product_name",
"name": "TencentOS Server (v. 4.6)",
"product": {"name": "TencentOS Server (v. 4.6)", "product_id": "TS4-4.6"}
}
]
},
{"category": "architecture", "name": "x86_64", "branches": [{ "...": "..." }]}
]
}
],
"relationships": [{ "...": "..." }]
},
"vulnerabilities": [
{
"cve": "CVE-2026-76044",
"disclosure_date": "2026-08-19T04:31:25+08:00",
"discovery_date": "2026-08-19T04:31:25+08:00",
"metrics": [
{
"content": {
"cvss_v3": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H",
"baseScore": 8.3,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "CHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
}
},
"products": ["TS4-4.6:ungoogled-chromium-152.0.7977.82-1.oc9.x86_64"]
}
],
"notes": [{ "...": "..." }],
"product_status": {
"fixed": ["TS4-4.6:ungoogled-chromium-152.0.7977.82-1.oc9.x86_64"]
},
"references": [{ "...": "..." }],
"remediations": [
{
"category": "vendor_fix",
"details": "yum update --advisory TSSA-2026:1034",
"product_ids": ["TS4-4.6:ungoogled-chromium-152.0.7977.82-1.oc9.x86_64"],
"url": "http://mirrors.tencent.com/tlinux/errata/TSSA-20261034.xml"
}
],
"threats": [
{
"category": "impact",
"details": "High",
"product_ids": ["TS4-4.6:ungoogled-chromium-152.0.7977.82-1.oc9.x86_64"]
}
]
}
]
}
CSAF 2.1 规范参见 CSAF 2.1 规范(OASIS)。

漏洞库列表接口

功能描述

分页获取 TencentOS 漏洞库列表。

调用方式

GET https://tossecurity.cloud.tencent.com/api/v1/vms/public-info/vulns

请求参数说明

参数名称
类型
必填
描述
page
int
否
当前页码,默认 1。
page_size
int
否
每页条数,默认 10,可选 10 / 20 / 30 / 50。
keywords
string
否
搜索 CVE 编号或影响软件包名。
severity
string
否
严重程度,可多选:critical / high / medium / low / negligible / unclassified。
status
string
否
漏洞状态,可多选:under_investigation / affected / not_affected / fixed / wont_fix。
create_date_start
string
否
创建日期范围起始。
create_date_end
string
否
创建日期范围结束。
update_date_start
string
否
更新日期范围起始。
update_date_end
string
否
更新日期范围结束。
order
string
否
排序字段,默认 create_date,可选 create_date / update_date / publish_date / cvss_score。
sort
string
否
排序方向,asc 或 desc,默认 desc。

状态说明

漏洞库列表与 CVE 详情接口的 status 字段使用同一套对外取值,查询入参与返回结果一致,含义如下:
状态值
含义
under_investigation
漏洞正在评估分析中。
affected
产品受影响,修复尚未完成。
fixed
产品受影响,且已提供修复。
not_affected
产品不受该漏洞影响。
wont_fix
产品受影响但不提供修复,含已停止支持的版本。

响应 data 项说明

参数名称
类型
描述
cve_id
string
CVE 编号。
cwe_id
string
CWE 编号。
details
string
漏洞描述(英文)。
details_cn
string
漏洞描述(中文),可能为空。
severity
string
严重程度:critical / high / medium / low / negligible / unclassified。
status
string
对外状态,取值见上文状态说明。
cvss_score
float
CVSS 评分,保留两位小数;无评分数据时不返回该字段。
affect_package_names
array
影响组件列表,已去重。
affect_product_ids
array
影响产品 ID 列表,已去重。
create_date
string
创建时间。
update_date
string
更新时间。

请求示例

curl -X GET "https://tossecurity.cloud.tencent.com/api/v1/vms/public-info/vulns?page=1&page_size=20&severity=critical&severity=high&status=under_investigation&status=affected&status=fixed&status=not_affected"
响应示例:
{
"code": 0,
"current_page": 1,
"data": [
{
"create_date": "2024-12-07T10:00:31+08:00",
"cve_id": "CVE-2024-11148",
"cwe_id": "CWE-476",
"details": "In OpenBSD 7.4 before errata 006 ...",
"details_cn": "",
"severity": "high",
"status": "not_affected",
"cvss_score": 7.2,
"affect_package_names": ["nginx"],
"affect_product_ids": ["TS3-3.3"],
"update_date": "2024-12-12T17:51:45+08:00"
}
],
"msg": "Success.",
"page_size": 20,
"total": 14,
"total_page": 1
}

CVE 漏洞详情接口

功能描述

按 CVE 编号获取 TencentOS 漏洞详情及产品影响信息。

调用方式

GET https://tossecurity.cloud.tencent.com/api/v1/vms/public-info/vulns/<cve_id>
路径参数说明:
参数名称
类型
必填
描述
cve_id
string
是
CVE 编号,须包含 CVE 前缀,例如 CVE-2020-36309。

响应 data 字段说明

参数名称
类型
描述
cve_id
string
CVE ID。
cwe_id
string
CWE ID。
details
string
漏洞描述(英文)。
details_cn
string
漏洞描述(中文),可能为空。
severity
string
严重程度:critical / high / medium / low / negligible / unclassified。
severity_statements
string
严重程度说明,可能为空。
status
string
对外状态,与漏洞库列表接口一致。
cvss
object
包含 cvss_v3、cvss_v4 两个子对象,两者均可能缺失。
cve_date
string
CVE 公开时间。
publish_date
string
发布时间。
create_date
string
创建时间。
update_date
string
更新时间。
affects
array
影响产品列表。
cvss.cvss_v3 与 cvss.cvss_v4 的字段均以 camelCase 命名,例如 baseScore、vectorString、attackVector,完整结构参见下方响应示例。
affects 数组项包含 product_id、affect_package_name、affect_details、status、sa_id、sa_publish_date。

请求示例

curl -X GET "https://tossecurity.cloud.tencent.com/api/v1/vms/public-info/vulns/CVE-2020-36309"
响应示例:
{
"code": 0,
"data": {
"affects": [
{
"affect_details": "",
"affect_package_name": "openresty",
"product_id": "TS4-4.2",
"sa_id": "",
"sa_publish_date": "",
"status": "not_affected"
}
],
"create_date": "2024-12-14T22:54:14+08:00",
"cve_date": "2021-04-07T01:32:45+08:00",
"cve_id": "CVE-2020-36309",
"cvss": {
"cvss_v3": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
"baseScore": 5.3,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "NONE",
"integrityImpact": "LOW",
"availabilityImpact": "NONE"
}
},
"cwe_id": "",
"details": "ngx_http_lua_module (aka lua-nginx-module) before 0.10.16 ...",
"details_cn": "",
"publish_date": "",
"severity": "medium",
"status": "not_affected",
"update_date": "2024-12-16T15:05:21+08:00"
},
"msg": "Success."
}