Skip to main content

Advisory Parser

This library allows you to parse data from security advisories of certain projects to extract information about security issues. The parsed information includes metadata such as impact, CVSS score, summary, description, and others; for a full list, see the advisory_parser/flaw.py file.

DISCLAIMER: Much of the advisory parsing is fairly fragile. Because web pages change all the time, it is not uncommon for parsers to break when a page is changed in some way. Also, the advisory parsers only work with the latest version of the advisory pages.

The need for parsing raw security advisories in this way could be avoided if vendors provided their security pages in a machine readable (and preferably standardized) format. An example of this would be Red Hat’s security advisories that can be pulled in from a separate Security Data API (RHSA-2016:1883.json) or downloaded as an XML file (cvrf-rhsa-2016-1883.xml), or OpenSSL’s list of issues available in XML (vulnerabilities.xml).

If you are a vendor or an upstream project owner interested in providing your security advisories in a machine readable format and don’t know where to start, feel free to reach out to mprpic@redhat.com.

Currently available parsers include:

Project

Example URL

Google Chrome

https://chromereleases.googleblog.com/2017/06/stable-channel-update-for-desktop_15.html

Adobe Flash

https://helpx.adobe.com/security/products/flash-player/apsb17-17.html

Jenkins

https://www.jenkins.io/security/advisory/2023-04-12

MySQL

http://www.oracle.com/technetwork/security-advisory/cpujul2017verbose-3236625.html

phpMyAdmin

Wireshark

Installation

pip install advisory-parser

Usage

from pprint import pprint
from advisory_parser import Parser


url = 'https://helpx.adobe.com/security/products/flash-player/apsb17-17.html'
flaws, warnings = Parser.parse_from_url(url)

for flaw in flaws:
    print()
    pprint(vars(flaw))

Metadata

Release files for advisory-parser 1.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for advisory-parser 1.15
File Size Uploaded Provenance Actions
advisory_parser-1.15.tar.gz 93.2 kB Without provenance Details for advisory_parser-1.15.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for advisory-parser 1.15
File Interpreter ABI Platform Actions
advisory_parser-1.15-py2.py3-none-any.whl Python 2, Python 3 none any Details for advisory_parser-1.15-py2.py3-none-any.whl

Total release size: 112.0 kB

Release files / advisory_parser-1.15.tar.gz

Download URL advisory_parser-1.15.tar.gz
Size 93.2 kB
Tags Source
SHA-256 checksum
How to use checksums
24cb1996127d334cccd22bcde8b0f0a497802583cd2a4b83ff89303ac6b7ae3c
BLAKE2b-256 checksum
How to use checksums
e74faa48151a511df157f2c30a1918c60f60021652b963a1c2460df56424a3c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Release files / advisory_parser-1.15-py2.py3-none-any.whl

Download URL advisory_parser-1.15-py2.py3-none-any.whl
Size 18.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3b067ca1907b64456ab77862c7c2f6cf6093fc9ca4b7b1d3b80e8e5e89323f0f
BLAKE2b-256 checksum
How to use checksums
1a4ba61607ab2167e719b8753fb3900dd9a3cd2c022de3d50fc3872efe9ec8aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.10

Security for advisory-parser 1.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page