AppThreat / vulnerability-db

Vulnerability database and package search for sources such as Linux, OSV, NVD, GitHub and npm. Powered by sqlite, CVE 5.0, purl, and vers.
MIT License
93 stars 22 forks source link

GitHub json decode error #7

Closed prabhu closed 4 years ago

prabhu commented 4 years ago

Noticed with GitHub source.

Traceback (most recent call last):
  File "/usr/local/bin/depscan", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/site-packages/depscan/cli.py", line 171, in main
    s.refresh()
  File "/usr/local/lib/python3.6/site-packages/vdb/lib/nvd.py", line 93, in refresh
    return self.download_all()
  File "/usr/local/lib/python3.6/site-packages/vdb/lib/gha.py", line 96, in download_all
    data, page_info = self.fetch(type=lastId)
  File "/usr/local/lib/python3.6/site-packages/vdb/lib/gha.py", line 124, in fetch
    return self.convert(json_data)
  File "/usr/local/lib/python3.6/site-packages/vdb/lib/gha.py", line 230, in convert
    vuln = NvdSource.convert_vuln(json.loads(tdata, strict=False))
  File "/usr/lib64/python3.6/json/__init__.py", line 367, in loads
    return cls(**kw).decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 355, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid \escape: line 2 column 599 (char 599)